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