-
Notifications
You must be signed in to change notification settings - Fork 0
/
EntitlementHistoryInfo.cs
189 lines (134 loc) · 6.36 KB
/
EntitlementHistoryInfo.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
// Copyright (c) 2022 AccelByte Inc. All Rights Reserved.
// This is licensed software from AccelByte Inc, for limitations
// and restrictions contact your company contract manager.
// This code is generated by tool. DO NOT EDIT.
using System.Text.Json.Serialization;
using AccelByte.Sdk.Core;
using AccelByte.Sdk.Core.Converters;
namespace AccelByte.Sdk.Api.Platform.Model
{
public class EntitlementHistoryInfo : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("action")]
[JsonStringEnum]
public EntitlementHistoryInfoAction? Action { get; set; }
[JsonPropertyName("clazz")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonStringEnum]
public EntitlementHistoryInfoClazz? Clazz { get; set; }
[JsonPropertyName("createdAt")]
public DateTime? CreatedAt { get; set; }
[JsonPropertyName("entitlementId")]
public string? EntitlementId { get; set; }
[JsonPropertyName("itemId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ItemId { get; set; }
[JsonPropertyName("namespace")]
public string? Namespace { get; set; }
[JsonPropertyName("operator")]
public string? Operator { get; set; }
[JsonPropertyName("origin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonStringEnum]
public EntitlementHistoryInfoOrigin? Origin { get; set; }
[JsonPropertyName("reason")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Reason { get; set; }
[JsonPropertyName("sku")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Sku { get; set; }
[JsonPropertyName("updatedAt")]
public DateTime? UpdatedAt { get; set; }
[JsonPropertyName("useCount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? UseCount { get; set; }
[JsonPropertyName("useCountChange")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? UseCountChange { get; set; }
[JsonPropertyName("userId")]
public string? UserId { get; set; }
}
public class EntitlementHistoryInfoAction : StringEnum<EntitlementHistoryInfoAction>
{
public static readonly EntitlementHistoryInfoAction DECREMENT
= new EntitlementHistoryInfoAction("DECREMENT");
public static readonly EntitlementHistoryInfoAction DISABLE
= new EntitlementHistoryInfoAction("DISABLE");
public static readonly EntitlementHistoryInfoAction ENABLE
= new EntitlementHistoryInfoAction("ENABLE");
public static readonly EntitlementHistoryInfoAction GRANT
= new EntitlementHistoryInfoAction("GRANT");
public static readonly EntitlementHistoryInfoAction REVOKE
= new EntitlementHistoryInfoAction("REVOKE");
public static readonly EntitlementHistoryInfoAction SELLBACK
= new EntitlementHistoryInfoAction("SELL_BACK");
public static readonly EntitlementHistoryInfoAction UPDATE
= new EntitlementHistoryInfoAction("UPDATE");
public static implicit operator EntitlementHistoryInfoAction(string value)
{
return NewValue(value);
}
public EntitlementHistoryInfoAction(string enumValue)
: base(enumValue)
{
}
}
public class EntitlementHistoryInfoClazz : StringEnum<EntitlementHistoryInfoClazz>
{
public static readonly EntitlementHistoryInfoClazz APP
= new EntitlementHistoryInfoClazz("APP");
public static readonly EntitlementHistoryInfoClazz CODE
= new EntitlementHistoryInfoClazz("CODE");
public static readonly EntitlementHistoryInfoClazz ENTITLEMENT
= new EntitlementHistoryInfoClazz("ENTITLEMENT");
public static readonly EntitlementHistoryInfoClazz LOOTBOX
= new EntitlementHistoryInfoClazz("LOOTBOX");
public static readonly EntitlementHistoryInfoClazz MEDIA
= new EntitlementHistoryInfoClazz("MEDIA");
public static readonly EntitlementHistoryInfoClazz OPTIONBOX
= new EntitlementHistoryInfoClazz("OPTIONBOX");
public static readonly EntitlementHistoryInfoClazz SUBSCRIPTION
= new EntitlementHistoryInfoClazz("SUBSCRIPTION");
public static implicit operator EntitlementHistoryInfoClazz(string value)
{
return NewValue(value);
}
public EntitlementHistoryInfoClazz(string enumValue)
: base(enumValue)
{
}
}
public class EntitlementHistoryInfoOrigin : StringEnum<EntitlementHistoryInfoOrigin>
{
public static readonly EntitlementHistoryInfoOrigin Epic
= new EntitlementHistoryInfoOrigin("Epic");
public static readonly EntitlementHistoryInfoOrigin GooglePlay
= new EntitlementHistoryInfoOrigin("GooglePlay");
public static readonly EntitlementHistoryInfoOrigin IOS
= new EntitlementHistoryInfoOrigin("IOS");
public static readonly EntitlementHistoryInfoOrigin Nintendo
= new EntitlementHistoryInfoOrigin("Nintendo");
public static readonly EntitlementHistoryInfoOrigin Oculus
= new EntitlementHistoryInfoOrigin("Oculus");
public static readonly EntitlementHistoryInfoOrigin Other
= new EntitlementHistoryInfoOrigin("Other");
public static readonly EntitlementHistoryInfoOrigin Playstation
= new EntitlementHistoryInfoOrigin("Playstation");
public static readonly EntitlementHistoryInfoOrigin Steam
= new EntitlementHistoryInfoOrigin("Steam");
public static readonly EntitlementHistoryInfoOrigin System
= new EntitlementHistoryInfoOrigin("System");
public static readonly EntitlementHistoryInfoOrigin Twitch
= new EntitlementHistoryInfoOrigin("Twitch");
public static readonly EntitlementHistoryInfoOrigin Xbox
= new EntitlementHistoryInfoOrigin("Xbox");
public static implicit operator EntitlementHistoryInfoOrigin(string value)
{
return NewValue(value);
}
public EntitlementHistoryInfoOrigin(string enumValue)
: base(enumValue)
{
}
}
}