Method GetLeaderboardEntries
- Namespace
- GuildWars2.Pvp
- Assembly
- GW2SDK.dll
GetLeaderboardEntries(string, string, string, int, int?, MissingMemberBehavior, CancellationToken)
Retrieves a page of the specified leaderboard in the specified PvP League season.
public Task<(HashSet<LeaderboardEntry> Value, MessageContext Context)> GetLeaderboardEntries(string seasonId, string boardId, string region, int pageIndex, int? pageSize = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
seasonId
stringThe season ID.
boardId
stringThe leaderboard ID.
region
stringThe region.
pageIndex
intHow many pages to skip. The first page starts at 0.
pageSize
int?How many entries to take.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(HashSet<LeaderboardEntry> Value, MessageContext Context)>
A task that represents the API request.