@@ -5120,6 +5120,74 @@ public static void SubmitScore(string memberId, int score, string leaderboardKey
5120
5120
LootLockerAPIManager . SubmitScore ( request , leaderboardKey , onComplete ) ;
5121
5121
}
5122
5122
5123
+ /// <summary>
5124
+ /// List the archived versions of a leaderboard, containing past rewards, ranks, etc.
5125
+ /// </summary>
5126
+ /// <param name="leaderboard_key">Key of the Leaderboard</param>
5127
+ /// <param name="onComplete">onComplete Action for handling the response of type LootLockerLeaderboardHistoryResponse</param>
5128
+ public static void ListLeaderboardArchive ( string leaderboard_key , Action < LootLockerLeaderboardHistoryResponse > onComplete )
5129
+ {
5130
+ if ( ! CheckInitialized ( ) )
5131
+ {
5132
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerLeaderboardHistoryResponse > ( ) ) ;
5133
+ return ;
5134
+ }
5135
+
5136
+ EndPointClass endPoint = LootLockerEndPoints . listLeaderboardArchive ;
5137
+ string tempEndpoint = string . Format ( endPoint . endPoint , leaderboard_key ) ;
5138
+ LootLockerServerRequest . CallAPI ( tempEndpoint , endPoint . httpMethod , null , ( ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ) ;
5139
+ }
5140
+
5141
+ /// <summary>
5142
+ /// Get the details of a Leaderboard Archive, containing past rewards, ranks, etc
5143
+ /// </summary>
5144
+ /// <param name="key"> Key of the json archive to read</param>
5145
+ /// <param name="onComplete"><onComplete Action for handling the response of type LootLockerLeaderboardHistoryDetailsResponse</param>
5146
+ public static void GetLeaderboardArchive ( string key , Action < LootLockerLeaderboardHistoryDetailsResponse > onComplete )
5147
+ {
5148
+ GetLeaderboardArchive ( key , - 1 , null , onComplete ) ;
5149
+ }
5150
+
5151
+ /// <summary>
5152
+ /// Get the details of a Leaderboard Archive, containing past rewards, ranks, etc
5153
+ /// </summary>
5154
+ /// <param name="key"> Key of the json archive to read</param>
5155
+ /// <param name="count"> Amount of entries to read </param>
5156
+ /// <param name="onComplete"><onComplete Action for handling the response of type LootLockerLeaderboardHistoryDetailsResponse</param>
5157
+ public static void GetLeaderboardArchive ( string key , int count , Action < LootLockerLeaderboardHistoryDetailsResponse > onComplete )
5158
+ {
5159
+ GetLeaderboardArchive ( key , count , null , onComplete ) ;
5160
+ }
5161
+
5162
+ /// <summary>
5163
+ /// Get the details of a Leaderboard Archive, containing past rewards, ranks, etc
5164
+ /// </summary>
5165
+ /// <param name="key"> Key of the json archive to read</param>
5166
+ /// <param name="count"> Amount of entries to read </param>
5167
+ /// <param name="after"> Return after specified index </param>
5168
+ /// <param name="onComplete"><onComplete Action for handling the response of type LootLockerLeaderboardHistoryDetailsResponse</param>
5169
+ public static void GetLeaderboardArchive ( string key , int count , string after , Action < LootLockerLeaderboardHistoryDetailsResponse > onComplete )
5170
+ {
5171
+ if ( ! CheckInitialized ( ) )
5172
+ {
5173
+ onComplete ? . Invoke ( LootLockerResponseFactory . SDKNotInitializedError < LootLockerLeaderboardHistoryDetailsResponse > ( ) ) ;
5174
+ return ;
5175
+ }
5176
+
5177
+ EndPointClass endPoint = LootLockerEndPoints . getLeaderboardArchive ;
5178
+
5179
+ string tempEndpoint = string . Format ( endPoint . endPoint , key ) ;
5180
+
5181
+ if ( count > 0 )
5182
+ tempEndpoint += $ "count={ count } &";
5183
+
5184
+ if ( ! string . IsNullOrEmpty ( after ) )
5185
+ tempEndpoint += $ "after={ after } &";
5186
+
5187
+
5188
+ LootLockerServerRequest . CallAPI ( tempEndpoint , endPoint . httpMethod , null , ( ( serverResponse ) => { LootLockerResponse . Deserialize ( onComplete , serverResponse ) ; } ) ) ;
5189
+ }
5190
+
5123
5191
/// <summary>
5124
5192
/// Get data on a leaderboard, check rewards and when it will reset and the last reset time.
5125
5193
/// </summary>
0 commit comments