4
4
5
5
namespace LootLocker . Requests
6
6
{
7
- public class LootLockerGetMemberRankResponse : LootLockerResponse
8
- {
9
- // we are doing thisfor legacy reasons, since it is no longer being set on the backend
10
- public string member_id { get ; set ; }
11
- public int rank { get ; set ; }
12
- public int score { get ; set ; }
13
- public LootLockerPlayer player { get ; set ; }
14
- public string metadata { get ; set ; }
15
- }
16
-
7
+ //==================================================
8
+ // Data Definitions
9
+ //==================================================
17
10
public class LootLockerPlayer
18
11
{
19
12
public int id { get ; set ; }
@@ -22,12 +15,6 @@ public class LootLockerPlayer
22
15
public string ulid { get ; set ; }
23
16
}
24
17
25
-
26
- public class LootLockerGetByListOfMembersResponse : LootLockerResponse
27
- {
28
- public LootLockerLeaderboardMember [ ] members { get ; set ; }
29
- }
30
-
31
18
public class LootLockerLeaderboardMember
32
19
{
33
20
public string member_id { get ; set ; }
@@ -37,50 +24,12 @@ public class LootLockerLeaderboardMember
37
24
public string metadata { get ; set ; }
38
25
}
39
26
40
- public class LootLockerGetScoreListResponse : LootLockerResponse
41
- {
42
- public LootLockerPagination pagination { get ; set ; }
43
- public LootLockerLeaderboardMember [ ] items { get ; set ; }
44
- }
45
-
46
-
47
- public class LootLockerGetAllMemberRanksResponse : LootLockerResponse
48
- {
49
- public LootLockerLeaderboard [ ] leaderboards { get ; set ; }
50
- public LootLockerPagination pagination { get ; set ; }
51
- }
52
-
53
27
public class LootLockerLeaderboard
54
28
{
55
29
public LootLockerLeaderboardMember rank { get ; set ; }
56
30
public int leaderboard_id { get ; set ; }
57
31
public string leaderboard_key { get ; set ; }
58
32
}
59
-
60
- public class LootLockerPagination
61
- {
62
- public int total { get ; set ; }
63
- public int ? next_cursor { get ; set ; }
64
- public int ? previous_cursor { get ; set ; }
65
- public bool allowNext { get ; set ; }
66
- public bool allowPrev { get ; set ; }
67
- }
68
-
69
- public class LootLockerSubmitScoreResponse : LootLockerResponse
70
- {
71
- public string member_id { get ; set ; }
72
- public int rank { get ; set ; }
73
- public int score { get ; set ; }
74
- public string metadata { get ; set ; }
75
- }
76
-
77
- public class LootLockerLeaderboardArchiveResponse : LootLockerResponse
78
- {
79
- /// <summary>
80
- /// A List of past Leaderboards.
81
- /// </summary>
82
- public LootLockerLeaderboardArchive [ ] archives { get ; set ; }
83
- }
84
33
85
34
public class LootLockerLeaderboardArchive
86
35
{
@@ -101,17 +50,7 @@ public class LootLockerLeaderboardArchive
101
50
/// </summary>
102
51
public int content_length { get ; set ; }
103
52
}
104
- public class LootLockerLeaderboardArchiveDetailsResponse : LootLockerResponse
105
- {
106
- /// <summary>
107
- /// Pagination.
108
- /// </summary>
109
- public LootLockerPaginationResponse < string > pagination { get ; set ; }
110
- /// <summary>
111
- /// A list of players and details from the archived Leaderboard.
112
- /// </summary>
113
- public LootLockerLeaderboardArchiveDetails [ ] items { get ; set ; }
114
- }
53
+
115
54
public class LootLockerLeaderboardArchiveDetails
116
55
{
117
56
/// <summary>
@@ -134,8 +73,17 @@ public class LootLockerLeaderboardArchiveDetails
134
73
/// The Player's Score on the archived Leaderboard.
135
74
/// </summary>
136
75
public int score { get ; set ; }
76
+ }
137
77
78
+ public class LootLockerPagination
79
+ {
80
+ public int total { get ; set ; }
81
+ public int ? next_cursor { get ; set ; }
82
+ public int ? previous_cursor { get ; set ; }
83
+ public bool allowNext { get ; set ; }
84
+ public bool allowPrev { get ; set ; }
138
85
}
86
+
139
87
public class LootLockerLeaderBoardPlayer
140
88
{
141
89
/// <summary>
@@ -156,6 +104,24 @@ public class LootLockerLeaderBoardPlayer
156
104
public string player_ulid { get ; set ; }
157
105
158
106
}
107
+
108
+
109
+ //==================================================
110
+ // Request Definitions
111
+ //==================================================
112
+ public class LootLockerGetRequests
113
+ {
114
+ public int count { get ; set ; }
115
+ public string after { get ; set ; }
116
+ }
117
+
118
+ public class LootLockerSubmitScoreRequest
119
+ {
120
+ public string member_id { get ; set ; }
121
+ public int score { get ; set ; }
122
+ public string metadata { get ; set ; }
123
+ }
124
+
159
125
[ Serializable ]
160
126
public class LootLockerLeaderboardArchiveRequest
161
127
{
@@ -171,14 +137,6 @@ public class LootLockerLeaderboardArchiveRequest
171
137
/// After specified index.
172
138
/// </summary>
173
139
public string after { get ; set ; }
174
-
175
- }
176
-
177
- public class LootLockerSubmitScoreRequest
178
- {
179
- public string member_id { get ; set ; }
180
- public int score { get ; set ; }
181
- public string metadata { get ; set ; }
182
140
}
183
141
184
142
public class LootLockerGetMemberRankRequest
@@ -213,15 +171,69 @@ public static void Reset()
213
171
}
214
172
}
215
173
216
- public class LootLockerGetRequests
174
+ public class LootLockerGetByListMembersRequest
217
175
{
218
- public int count { get ; set ; }
219
- public string after { get ; set ; }
176
+ public string [ ] members { get ; set ; }
220
177
}
221
178
222
- public class LootLockerGetByListMembersRequest
179
+ //==================================================
180
+ // Response Definitions
181
+ //==================================================
182
+
183
+ public class LootLockerGetMemberRankResponse : LootLockerResponse
223
184
{
224
- public string [ ] members { get ; set ; }
185
+ // we are doing thisfor legacy reasons, since it is no longer being set on the backend
186
+ public string member_id { get ; set ; }
187
+ public int rank { get ; set ; }
188
+ public int score { get ; set ; }
189
+ public LootLockerPlayer player { get ; set ; }
190
+ public string metadata { get ; set ; }
191
+ }
192
+
193
+
194
+ public class LootLockerGetByListOfMembersResponse : LootLockerResponse
195
+ {
196
+ public LootLockerLeaderboardMember [ ] members { get ; set ; }
197
+ }
198
+
199
+ public class LootLockerGetScoreListResponse : LootLockerResponse
200
+ {
201
+ public LootLockerPagination pagination { get ; set ; }
202
+ public LootLockerLeaderboardMember [ ] items { get ; set ; }
203
+ }
204
+
205
+ public class LootLockerGetAllMemberRanksResponse : LootLockerResponse
206
+ {
207
+ public LootLockerLeaderboard [ ] leaderboards { get ; set ; }
208
+ public LootLockerPagination pagination { get ; set ; }
209
+ }
210
+
211
+ public class LootLockerSubmitScoreResponse : LootLockerResponse
212
+ {
213
+ public string member_id { get ; set ; }
214
+ public int rank { get ; set ; }
215
+ public int score { get ; set ; }
216
+ public string metadata { get ; set ; }
217
+ }
218
+
219
+ public class LootLockerLeaderboardArchiveResponse : LootLockerResponse
220
+ {
221
+ /// <summary>
222
+ /// A List of past Leaderboards.
223
+ /// </summary>
224
+ public LootLockerLeaderboardArchive [ ] archives { get ; set ; }
225
+ }
226
+
227
+ public class LootLockerLeaderboardArchiveDetailsResponse : LootLockerResponse
228
+ {
229
+ /// <summary>
230
+ /// Pagination.
231
+ /// </summary>
232
+ public LootLockerPaginationResponse < string > pagination { get ; set ; }
233
+ /// <summary>
234
+ /// A list of players and details from the archived Leaderboard.
235
+ /// </summary>
236
+ public LootLockerLeaderboardArchiveDetails [ ] items { get ; set ; }
225
237
}
226
238
}
227
239
0 commit comments