-
Notifications
You must be signed in to change notification settings - Fork 33
/
TokenBalanceFilter.cs
66 lines (56 loc) 路 2.29 KB
/
TokenBalanceFilter.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
57
58
59
60
61
62
63
64
65
66
锘縰sing System.Text.Json.Serialization;
using Tzkt.Api.Services;
namespace Tzkt.Api
{
public class TokenBalanceFilter : INormalizable
{
/// <summary>
/// Filter by internal TzKT id.
/// Click on the parameter to expand more details.
/// </summary>
public Int64Parameter id { get; set; }
/// <summary>
/// Filter by account address.
/// Click on the parameter to expand more details.
/// </summary>
public AccountParameter account { get; set; }
/// <summary>
/// Filter by token.
/// Click on the parameter to expand more details.
/// </summary>
public TokenInfoFilter token { get; set; }
/// <summary>
/// Filter by balance.
/// Click on the parameter to expand more details.
/// </summary>
public NatParameter balance { get; set; }
/// <summary>
/// Filter by level of the block where the balance was first changed.
/// Click on the parameter to expand more details.
/// </summary>
public Int32Parameter firstLevel { get; set; }
/// <summary>
/// Filter by timestamp (ISO 8601) of the block where the balance was first changed.
/// Click on the parameter to expand more details.
/// </summary>
public TimestampParameter firstTime { get; set; }
/// <summary>
/// Filter by level of the block where the balance was last seen.
/// Click on the parameter to expand more details.
/// </summary>
public Int32Parameter lastLevel { get; set; }
/// <summary>
/// Filter by timestamp (ISO 8601) of the block where the balance was last changed.
/// Click on the parameter to expand more details.
/// </summary>
public TimestampParameter lastTime { get; set; }
[JsonIgnore]
public Int32NullParameter indexedAt { get; set; }
public string Normalize(string name)
{
return ResponseCacheService.BuildKey("",
("id", id), ("account", account), ("token", token), ("balance", balance), ("firstLevel", firstLevel),
("firstTime", firstTime), ("lastLevel", lastLevel), ("lastTime", lastTime), ("indexedAt", indexedAt));
}
}
}