-
Notifications
You must be signed in to change notification settings - Fork 0
/
EntitlementGrant.cs
154 lines (110 loc) · 5.06 KB
/
EntitlementGrant.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
// 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 EntitlementGrant : AccelByte.Sdk.Core.Model
{
[JsonPropertyName("collectionId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CollectionId { get; set; }
[JsonPropertyName("endDate")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? EndDate { get; set; }
[JsonPropertyName("grantedCode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? GrantedCode { get; set; }
[JsonPropertyName("itemId")]
public string? ItemId { get; set; }
[JsonPropertyName("itemNamespace")]
public string? ItemNamespace { get; set; }
[JsonPropertyName("language")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Language { get; set; }
[JsonPropertyName("origin")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonStringEnum]
public EntitlementGrantOrigin? Origin { get; set; }
[JsonPropertyName("quantity")]
public int? Quantity { get; set; }
[JsonPropertyName("region")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Region { get; set; }
[JsonPropertyName("source")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonStringEnum]
public EntitlementGrantSource? Source { get; set; }
[JsonPropertyName("startDate")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? StartDate { get; set; }
[JsonPropertyName("storeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? StoreId { get; set; }
}
public class EntitlementGrantOrigin : StringEnum<EntitlementGrantOrigin>
{
public static readonly EntitlementGrantOrigin Epic
= new EntitlementGrantOrigin("Epic");
public static readonly EntitlementGrantOrigin GooglePlay
= new EntitlementGrantOrigin("GooglePlay");
public static readonly EntitlementGrantOrigin IOS
= new EntitlementGrantOrigin("IOS");
public static readonly EntitlementGrantOrigin Nintendo
= new EntitlementGrantOrigin("Nintendo");
public static readonly EntitlementGrantOrigin Oculus
= new EntitlementGrantOrigin("Oculus");
public static readonly EntitlementGrantOrigin Other
= new EntitlementGrantOrigin("Other");
public static readonly EntitlementGrantOrigin Playstation
= new EntitlementGrantOrigin("Playstation");
public static readonly EntitlementGrantOrigin Steam
= new EntitlementGrantOrigin("Steam");
public static readonly EntitlementGrantOrigin System
= new EntitlementGrantOrigin("System");
public static readonly EntitlementGrantOrigin Twitch
= new EntitlementGrantOrigin("Twitch");
public static readonly EntitlementGrantOrigin Xbox
= new EntitlementGrantOrigin("Xbox");
public static implicit operator EntitlementGrantOrigin(string value)
{
return NewValue(value);
}
public EntitlementGrantOrigin(string enumValue)
: base(enumValue)
{
}
}
public class EntitlementGrantSource : StringEnum<EntitlementGrantSource>
{
public static readonly EntitlementGrantSource ACHIEVEMENT
= new EntitlementGrantSource("ACHIEVEMENT");
public static readonly EntitlementGrantSource GIFT
= new EntitlementGrantSource("GIFT");
public static readonly EntitlementGrantSource IAP
= new EntitlementGrantSource("IAP");
public static readonly EntitlementGrantSource OTHER
= new EntitlementGrantSource("OTHER");
public static readonly EntitlementGrantSource PROMOTION
= new EntitlementGrantSource("PROMOTION");
public static readonly EntitlementGrantSource PURCHASE
= new EntitlementGrantSource("PURCHASE");
public static readonly EntitlementGrantSource REDEEMCODE
= new EntitlementGrantSource("REDEEM_CODE");
public static readonly EntitlementGrantSource REFERRALBONUS
= new EntitlementGrantSource("REFERRAL_BONUS");
public static readonly EntitlementGrantSource REWARD
= new EntitlementGrantSource("REWARD");
public static implicit operator EntitlementGrantSource(string value)
{
return NewValue(value);
}
public EntitlementGrantSource(string enumValue)
: base(enumValue)
{
}
}
}