-
Notifications
You must be signed in to change notification settings - Fork 34
/
OperationStatusParameter.cs
34 lines (31 loc) 路 1.2 KB
/
OperationStatusParameter.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
锘縰sing Microsoft.AspNetCore.Mvc;
using NJsonSchema.Annotations;
namespace Tzkt.Api
{
[ModelBinder(BinderType = typeof(OperationStatusBinder))]
[JsonSchemaExtensionData("x-tzkt-extension", "query-parameter")]
[JsonSchemaExtensionData("x-tzkt-query-parameter", "applied,failed,backtracked,skipped")]
public class OperationStatusParameter : INormalizable
{
/// <summary>
/// **Equal** filter mode (optional, i.e. `param.eq=applied` is the same as `param=applied`). \
/// Specify an operation status to get items where the specified field is equal to the specified value.
///
/// Example: `?type=failed`.
/// </summary>
[JsonSchemaType(typeof(string))]
public int? Eq { get; set; }
/// <summary>
/// **Not equal** filter mode. \
/// Specify an operation status to get items where the specified field is not equal to the specified value.
///
/// Example: `?type.ne=applied`.
/// </summary>
[JsonSchemaType(typeof(string))]
public int? Ne { get; set; }
public string Normalize(string name)
{
throw new System.NotImplementedException();
}
}
}