Skip to content

Instantly share code, notes, and snippets.

@KyleT-bone
Last active October 18, 2023 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KyleT-bone/0371770b6b0124949bfba7ace4c3c8cb to your computer and use it in GitHub Desktop.
Save KyleT-bone/0371770b6b0124949bfba7ace4c3c8cb to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
[Serializable]
public class AssetData
{
public int Id { get; set; }
public string Description { get; set; }
public string Image { get; set; }
public Price Price { get; set; }
public AssetData(int id, string description, string image, Price price)
{
Id = id;
Description = description;
Image = image;
Price = price;
}
}
public class Price
{
public List<RegionPrice> Regions { get; set; }
public Price(List<RegionPrice> regions)
{
Regions = regions;
}
}
public class RegionPrice
{
public string Name { get; set; }
public string Currency { get; set; }
public string Symbol { get; set; }
public decimal Amount { get; set; }
public RegionPrice(string name, string currency, string symbol, decimal amount)
{
Name = name;
Currency = currency;
Symbol = symbol;
Amount = amount;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment