feat(leaderboards): add allow_manual_resets and upcoming_resets to leaderboard detail response#472
Merged
Merged
Conversation
…aderboard detail response Adds two new fields to LootLockerLeaderboardDetailResponse: - allow_manual_resets: whether the leaderboard allows manual resets - upcoming_resets: array of LootLockerLeaderboardUpcomingReset, containing pending manual resets ordered by scheduled_for ascending Also introduces the new LootLockerLeaderboardUpcomingReset class with id, name, and scheduled_for fields. Part of #1279
Field removed from LootLockerLeaderboardDetails as the backend no longer requires the per-board opt-in. Manual resets are unconditionally available.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #1279 — Manual Leaderboard Resets (Phase 3: SDK support).
Adds two new response fields to
LootLockerLeaderboardDetailResponse:allow_manual_resets(bool): whether this leaderboard allows manual resets to be requested via the server API.upcoming_resets(LootLockerLeaderboardUpcomingReset[]): pending manual resets that have been requested but not yet processed, ordered byscheduled_forascending. Only populated whenallow_manual_resetsistrue.Also introduces the new
LootLockerLeaderboardUpcomingResetclass with:id(int): unique ID of the manual reset requestname(string): optional human-readable namescheduled_for(string): UTC ISO 8601 time at which the reset will be processedThese are auto-deserialized from the game API response — no new SDK manager methods are required.