Skip to content

Commit c470f7b

Browse files
Mikkel Sørensenkirre-bylund
authored andcommitted
Made naming homogenized from History to Archive
1 parent d47874f commit c470f7b

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5124,12 +5124,12 @@ public static void SubmitScore(string memberId, int score, string leaderboardKey
51245124
/// List the archived versions of a leaderboard, containing past rewards, ranks, etc.
51255125
/// </summary>
51265126
/// <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)
5127+
/// <param name="onComplete">onComplete Action for handling the response of type LootLockerLeaderboardArchiveResponse</param>
5128+
public static void ListLeaderboardArchive(string leaderboard_key, Action<LootLockerLeaderboardArchiveResponse> onComplete)
51295129
{
51305130
if (!CheckInitialized())
51315131
{
5132-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerLeaderboardHistoryResponse>());
5132+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerLeaderboardArchiveResponse>());
51335133
return;
51345134
}
51355135

@@ -5142,8 +5142,8 @@ public static void ListLeaderboardArchive(string leaderboard_key, Action<LootLoc
51425142
/// Get the details of a Leaderboard Archive, containing past rewards, ranks, etc
51435143
/// </summary>
51445144
/// <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)
5145+
/// <param name="onComplete"><onComplete Action for handling the response of type LootLockerLeaderboardArchiveDetailsResponse</param>
5146+
public static void GetLeaderboardArchive(string key, Action<LootLockerLeaderboardArchiveDetailsResponse> onComplete)
51475147
{
51485148
GetLeaderboardArchive(key, -1, null, onComplete);
51495149
}
@@ -5153,24 +5153,24 @@ public static void GetLeaderboardArchive(string key, Action<LootLockerLeaderboar
51535153
/// </summary>
51545154
/// <param name="key"> Key of the json archive to read</param>
51555155
/// <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)
5156+
/// <param name="onComplete"><onComplete Action for handling the response of type LootLockerLeaderboardArchiveDetailsResponse</param>
5157+
public static void GetLeaderboardArchive(string key, int count, Action<LootLockerLeaderboardArchiveDetailsResponse> onComplete)
51585158
{
51595159
GetLeaderboardArchive(key, count, null, onComplete);
51605160
}
5161-
5161+
51625162
/// <summary>
51635163
/// Get the details of a Leaderboard Archive, containing past rewards, ranks, etc
51645164
/// </summary>
51655165
/// <param name="key"> Key of the json archive to read</param>
51665166
/// <param name="count"> Amount of entries to read </param>
51675167
/// <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)
5168+
/// <param name="onComplete"><onComplete Action for handling the response of type LootLockerLeaderboardArchiveDetailsResponse</param>
5169+
public static void GetLeaderboardArchive(string key, int count, string after, Action<LootLockerLeaderboardArchiveDetailsResponse> onComplete)
51705170
{
51715171
if (!CheckInitialized())
51725172
{
5173-
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerLeaderboardHistoryDetailsResponse>());
5173+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerLeaderboardArchiveDetailsResponse>());
51745174
return;
51755175
}
51765176

Runtime/Game/Requests/LeaderboardRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public class LootLockerSubmitScoreResponse : LootLockerResponse
7373
public string metadata { get; set; }
7474
}
7575

76-
public class LootLockerLeaderboardHistoryResponse : LootLockerResponse
76+
public class LootLockerLeaderboardArchiveResponse : LootLockerResponse
7777
{
7878
/// <summary>
7979
/// A List of past Leaderboards.
@@ -100,7 +100,7 @@ public class LootLockerLeaderboardArchive
100100
/// </summary>
101101
public int content_length { get; set; }
102102
}
103-
public class LootLockerLeaderboardHistoryDetailsResponse : LootLockerResponse
103+
public class LootLockerLeaderboardArchiveDetailsResponse : LootLockerResponse
104104
{
105105
/// <summary>
106106
/// Pagination.
@@ -109,9 +109,9 @@ public class LootLockerLeaderboardHistoryDetailsResponse : LootLockerResponse
109109
/// <summary>
110110
/// A list of players and details from the archived Leaderboard.
111111
/// </summary>
112-
public LootLockerLeaderboardHistoryDetails[] items { get; set; }
112+
public LootLockerLeaderboardArchiveDetails[] items { get; set; }
113113
}
114-
public class LootLockerLeaderboardHistoryDetails
114+
public class LootLockerLeaderboardArchiveDetails
115115
{
116116
/// <summary>
117117
/// The Player on the archived Leaderboard.

0 commit comments

Comments
 (0)