Last active
October 18, 2023 12:37
-
-
Save KyleT-bone/0371770b6b0124949bfba7ace4c3c8cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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