-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathasset.cs
59 lines (47 loc) · 1.61 KB
/
asset.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BlockClocksWindows
{
public class assetinfo
{
public string unit;
public string asset;
public string quantity;
public string id { get { return asset ?? unit; } }
public int retries;
public assetinfo()
{
retries = 0;
}
}
public class clockassetcontents
{
public string asset { get; set; }
public string policy_id { get; set; }
public string asset_name { get; set; }
public string fingerprint { get; set; }
public string quantity { get; set; }
public string initial_mint_tx_hash { get; set; }
public int mint_or_burn_count { get; set; }
public Onchain_Metadata onchain_metadata { get; set; }
public object metadata { get; set; }
public string name { get { return onchain_metadata == null ? metadata == null ? "" : ((JToken)metadata).Value<string>("name") : onchain_metadata.name + (string.IsNullOrWhiteSpace(onchain_metadata.background) ? "" : " - " + onchain_metadata.background); } }
public string ipfshash;
public string videohash;
public string onchainhtml;
public string image;
}
public class Onchain_Metadata
{
public string name { get; set; }
public string type { get; set; }
public object files { get; set; }
public string background { get; set; }
}
public class File
{
public object src { get; set; }
public string name { get; set; }
public string mediaType { get; set; }
}
}