| | 1 | | using Newtonsoft.Json; |
| | 2 | | using System; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCLServices.Lambdas.LandsService |
| | 7 | | { |
| | 8 | | [Serializable] |
| | 9 | | public class LandsResponse : PaginatedResponse |
| | 10 | | { |
| | 11 | | [Serializable] |
| | 12 | | public class LandEntry |
| | 13 | | { |
| | 14 | | [JsonProperty] private string name; |
| | 15 | | [JsonProperty] private string contractAddress; |
| | 16 | | [JsonProperty] private string category; |
| | 17 | | [JsonProperty] private string x; |
| | 18 | | [JsonProperty] private string y; |
| | 19 | | [JsonProperty] private string price; |
| | 20 | | [JsonProperty] private string image; |
| | 21 | |
|
| 0 | 22 | | public string Name => name; |
| 0 | 23 | | public string ContractAddress => contractAddress; |
| 0 | 24 | | public string Category => category; |
| 0 | 25 | | public string X => x; |
| 0 | 26 | | public string Y => y; |
| 0 | 27 | | public string Price => price; |
| 0 | 28 | | public string Image => image; |
| | 29 | |
|
| | 30 | | public NftInfo GetNftInfo() => |
| 0 | 31 | | new() |
| | 32 | | { |
| | 33 | | Id = contractAddress, |
| | 34 | | Category = category, |
| | 35 | | }; |
| | 36 | | } |
| | 37 | |
|
| | 38 | | [JsonProperty] private List<LandEntry> elements; |
| | 39 | |
|
| 0 | 40 | | public IReadOnlyList<LandEntry> Elements => elements; |
| | 41 | | } |
| | 42 | | } |