-
Notifications
You must be signed in to change notification settings - Fork 33
/
Int32ExParameter.cs
104 lines (92 loc) 路 3.71 KB
/
Int32ExParameter.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
锘縰sing System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using NJsonSchema.Annotations;
namespace Tzkt.Api
{
[ModelBinder(BinderType = typeof(Int32ExBinder))]
[JsonSchemaExtensionData("x-tzkt-extension", "query-parameter")]
public class Int32ExParameter : INormalizable
{
/// <summary>
/// **Equal** filter mode (optional, i.e. `param.eq=123` is the same as `param=123`). \
/// Specify an integer number to get items where the specified field is equal to the specified value.
///
/// Example: `?balance=1234`.
/// </summary>
public int? Eq { get; set; }
/// <summary>
/// **Not equal** filter mode. \
/// Specify an integer number to get items where the specified field is not equal to the specified value.
///
/// Example: `?balance.ne=1234`.
/// </summary>
public int? Ne { get; set; }
/// <summary>
/// **Greater than** filter mode. \
/// Specify an integer number to get items where the specified field is greater than the specified value.
///
/// Example: `?balance.gt=1234`.
/// </summary>
public int? Gt { get; set; }
/// <summary>
/// **Greater or equal** filter mode. \
/// Specify an integer number to get items where the specified field is greater than equal to the specified value.
///
/// Example: `?balance.ge=1234`.
/// </summary>
public int? Ge { get; set; }
/// <summary>
/// **Less than** filter mode. \
/// Specify an integer number to get items where the specified field is less than the specified value.
///
/// Example: `?balance.lt=1234`.
/// </summary>
public int? Lt { get; set; }
/// <summary>
/// **Less or equal** filter mode. \
/// Specify an integer number to get items where the specified field is less than or equal to the specified value.
///
/// Example: `?balance.le=1234`.
/// </summary>
public int? Le { get; set; }
/// <summary>
/// **In list** (any of) filter mode. \
/// Specify a comma-separated list of integers to get items where the specified field is equal to one of the specified values.
///
/// Example: `?level.in=12,14,52,69`.
/// </summary>
public List<int> In { get; set; }
/// <summary>
/// **Not in list** (none of) filter mode. \
/// Specify a comma-separated list of integers to get items where the specified field is not equal to all the specified values.
///
/// Example: `?level.ni=12,14,52,69`.
/// </summary>
public List<int> Ni { get; set; }
/// <summary>
/// **Equal to another field** filter mode. \
/// Specify a field name to get items where the specified fields are equal.
///
/// Example: `?firstActivity.eqx=lastActivity`.
/// </summary>
public string Eqx { get; set; }
/// <summary>
/// **Not equal to another field** filter mode. \
/// Specify a field name to get items where the specified fields are not equal.
///
/// Example: `??firstActivity.nex=lastActivity`.
/// </summary>
public string Nex { get; set; }
/// <summary>
/// **Is null** filter mode. \
/// Use this mode to get items where the specified field is null or not.
///
/// Example: `?nonce.null` or `?nonce.null=false`.
/// </summary>
public bool? Null { get; set; }
public string Normalize(string name)
{
throw new System.NotImplementedException();
}
}
}