1
- namespace LootLocker . Requests
1
+ using LootLocker . LootLockerEnums ;
2
+
3
+ namespace LootLocker . LootLockerEnums
4
+ {
5
+ /// <summary>
6
+ /// An enum with the supported stores that can generate entitlements
7
+ /// </summary>
8
+ public enum LootLockerEntitlementHistoryListingStore
9
+ {
10
+ None = 0 ,
11
+ Apple_app_store = 1 ,
12
+ Google_play_store = 2 ,
13
+ Steam_store = 3 ,
14
+ Playstation_network = 4 ,
15
+ Nintendo_eshop = 5 ,
16
+ Lootlocker = 6
17
+ } ;
18
+
19
+ /// <summary>
20
+ /// Status of the entitlement
21
+ /// </summary>
22
+ public enum LootLockerEntitlementHistoryListingStatus
23
+ {
24
+ None = 0 ,
25
+ Active = 1 ,
26
+ Pending = 2 ,
27
+ Expired = 3 ,
28
+ Canceled = 4 ,
29
+ Refunded = 5
30
+ } ;
31
+
32
+ /// <summary>
33
+ /// Status of the entitlement
34
+ /// </summary>
35
+ public enum LootLockerEntitlementHistoryListingType
36
+ {
37
+ Undefined = 0 ,
38
+ One_time_purchase = 1 ,
39
+ Leaderboard_reward = 2 ,
40
+ Subscription = 3
41
+ } ;
42
+ }
43
+
44
+ namespace LootLocker . Requests
2
45
{
3
46
//==================================================
4
47
// Data Definitions
@@ -10,34 +53,34 @@ public class LootLockerEntitlementHistoryItem
10
53
{
11
54
12
55
/// <summary>
13
- /// TODO: Document
56
+ /// When this item was created
14
57
/// </summary>
15
- public string created_at { get ; set ; }
58
+ public string Created_at { get ; set ; }
16
59
17
60
/// <summary>
18
- /// TODO: Document
61
+ /// What kind of reward this item is
19
62
/// </summary>
20
- public string reward_kind { get ; set ; }
63
+ public string Reward_kind { get ; set ; }
21
64
22
65
/// <summary>
23
- /// TODO: Document
66
+ /// The unique identifier of this specific item
24
67
/// </summary>
25
- public string id { get ; set ; }
68
+ public string Id { get ; set ; }
26
69
27
70
/// <summary>
28
- /// TODO: Document
71
+ /// The id of the reward this item is in
29
72
/// </summary>
30
- public string reward_id { get ; set ; }
73
+ public string Reward_id { get ; set ; }
31
74
32
75
/// <summary>
33
- /// TODO: Document
76
+ /// The id of the catalog item that this item is in
34
77
/// </summary>
35
- public string catalog_id { get ; set ; }
78
+ public string Catalog_id { get ; set ; }
36
79
37
80
/// <summary>
38
- /// TODO: Document
81
+ /// Whether this item is purchasable
39
82
/// </summary>
40
- public bool purchasable { get ; set ; }
83
+ public bool Purchasable { get ; set ; }
41
84
}
42
85
43
86
/// <summary>
@@ -46,14 +89,14 @@ public class LootLockerEntitlementHistoryMetadata
46
89
{
47
90
48
91
/// <summary>
49
- /// TODO: Document
92
+ /// The key of this pair, describes what the value is
50
93
/// </summary>
51
- public string key { get ; set ; }
94
+ public string Key { get ; set ; }
52
95
53
96
/// <summary>
54
- /// TODO: Document
97
+ /// The value of this pair, contains the information of the metadata
55
98
/// </summary>
56
- public string value { get ; set ; }
99
+ public string Value { get ; set ; }
57
100
}
58
101
59
102
/// <summary>
@@ -62,24 +105,19 @@ public class LootLockerEntitlementHistoryReward
62
105
{
63
106
64
107
/// <summary>
65
- /// TODO: Document
66
- /// </summary>
67
- public string created_at { get ; set ; }
68
-
69
- /// <summary>
70
- /// TODO: Document
108
+ /// When this reward was created
71
109
/// </summary>
72
- public string entitlement_id { get ; set ; }
110
+ public string Created_at { get ; set ; }
73
111
74
112
/// <summary>
75
- /// TODO: Document
113
+ /// The id of this entitlement
76
114
/// </summary>
77
- public string id { get ; set ; }
115
+ public string Entitlement_id { get ; set ; }
78
116
79
117
/// <summary>
80
- /// TODO: Document
118
+ /// The unique identifier of this reward
81
119
/// </summary>
82
- public string reward_id { get ; set ; }
120
+ public string Id { get ; set ; }
83
121
}
84
122
85
123
//==================================================
@@ -92,14 +130,14 @@ public class LootLockerEntitlementHistoryResponse : LootLockerResponse
92
130
{
93
131
94
132
/// <summary>
95
- /// TODO: Document
133
+ /// List of entitlement history entries
96
134
/// </summary>
97
- public LootLockerEntitlementListing [ ] listings { get ; set ; }
98
-
135
+ public LootLockerEntitlementListing [ ] Listings { get ; set ; }
136
+
99
137
/// <summary>
100
- /// TODO: Document
138
+ /// Pagination data to use for subsequent requests
101
139
/// </summary>
102
- public LootLockerPaginationResponse < string > pagination { get ; set ; }
140
+ public LootLockerPaginationResponse < string > Pagination { get ; set ; }
103
141
}
104
142
105
143
/// <summary>
@@ -108,48 +146,44 @@ public class LootLockerEntitlementListing
108
146
{
109
147
110
148
/// <summary>
111
- /// TODO: Document
112
- /// </summary>
113
- public string created_at { get ; set ; }
114
-
115
- /// <summary>
116
- /// TODO: Document
149
+ /// When this entitlement listing was created
117
150
/// </summary>
118
- public string id { get ; set ; }
151
+ public string Created_at { get ; set ; }
119
152
120
153
/// <summary>
121
- /// TODO: Document
154
+ /// The unique identifier of this entitlement listing
122
155
/// </summary>
123
- public LootLockerEntitlementHistoryItem [ ] items { get ; set ; }
124
-
156
+ public string Id { get ; set ; }
157
+
125
158
/// <summary>
126
- /// TODO: Document
159
+ /// List of items in this entitlement (items are related to the catalog)
127
160
/// </summary>
128
- public LootLockerEntitlementHistoryMetadata [ ] metadata { get ; set ; }
129
-
161
+ public LootLockerEntitlementHistoryItem [ ] Items { get ; set ; }
162
+
130
163
/// <summary>
131
- /// TODO: Document
164
+ /// List of rewards in this entitlement (these are rewards from systems such as leaderboards, progressions, etc.)
132
165
/// </summary>
133
- public string player_id { get ; set ; }
134
-
166
+ public LootLockerEntitlementHistoryReward [ ] Rewards { get ; set ; }
167
+
135
168
/// <summary>
136
- /// TODO: Document
169
+ /// Metadata related to this entitlement listing
170
+ /// This array consists of key value pairs and contains various pieces of information about the entitlement, such as information from third party stores etc.
137
171
/// </summary>
138
- public LootLockerEntitlementHistoryReward [ ] rewards { get ; set ; }
139
-
172
+ public LootLockerEntitlementHistoryMetadata [ ] Metadata { get ; set ; }
173
+
140
174
/// <summary>
141
- /// TODO: Document
175
+ /// The status of this entitlement listing
142
176
/// </summary>
143
- public string status { get ; set ; }
144
-
177
+ public LootLockerEntitlementHistoryListingStatus Status { get ; set ; } = LootLockerEntitlementHistoryListingStatus . None ;
178
+
145
179
/// <summary>
146
- /// TODO: Document
180
+ /// Which store (if any) that this entitlement listing relates to
147
181
/// </summary>
148
- public string store { get ; set ; }
149
-
182
+ public LootLockerEntitlementHistoryListingStore Store { get ; set ; } = LootLockerEntitlementHistoryListingStore . None ;
183
+
150
184
/// <summary>
151
- /// TODO: Document
185
+ /// Which type this entitlement listing is
152
186
/// </summary>
153
- public string type { get ; set ; }
187
+ public LootLockerEntitlementHistoryListingType Type { get ; set ; } = LootLockerEntitlementHistoryListingType . Undefined ;
154
188
}
155
189
}
0 commit comments