Home > @world-wide-lab/client > GetLeaderoardScoresOptions
GetLeaderoardScoresOptions interface
Options to get scores from a leaderboard when using Client.getLeaderboardScores()
Signature:
typescript
export interface GetLeaderoardScoresOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
"none" | "sum" | (Optional) Should scores be aggregated? If so, how? | ||
number | (Optional) Cache the result for this many seconds | ||
number | (Optional) How many rows to return (maximally) | ||
string | (Optional) Filter scores to only those with this publicGroupName. | ||
string | (Optional) Filter scores to only those with this publicIndividualName. | ||
"desc" | "asc" | (Optional) In which direction to sort the scores (default is 'desc') | ||
Date | (Optional) Only return scores that were updated after and including this timepoint. Can be used with oneWeekAgo(), oneMonthAgo() or oneYearAgo(). |