|
Beamable SDK
|

Public Member Functions | |
| UserDataCache< RankEntry > | GetCache (string boardId) |
| Get the UserDataCache<RankEntry> with RankEntry values for some leaderboard ID. More... | |
| Promise< LeaderboardAssignmentInfo > | GetAssignment (string boardId, bool joinBoard) |
| For partitioned or cohorted leaderboards Resolves the specific child leaderboard the player is assigned to e.g. "leaderboards.my_partitioned_board" -> "leaderboards.my_partitioned_board#0" – where #0 denotes the partition identifier More... | |
| Promise< LeaderboardAssignmentInfo > | ResolveAssignment (string boardId, long gamerTag) |
| For partitioned or cohorted leaderboards Resolves the specific child leaderboard the player is assigned to Uses a cache to avoid repeat communication with the server More... | |
| Promise< RankEntry > | GetUser (LeaderboardRef leaderBoard, long gamerTag) |
| Get the rank of a specific player on a specific leaderboard More... | |
| Promise< RankEntry > | GetUser (string boardId, long gamerTag) |
| Get the rank of a specific player on a specific leaderboard More... | |
| Promise< LeaderBoardView > | GetBoard (LeaderboardRef leaderBoard, int from, int max, long? focus=null, long? outlier=null) |
| Get a view with ranking of a specific leaderboard More... | |
| Promise< LeaderBoardView > | GetBoard (string boardId, int from, int max, long? focus=null, long? outlier=null) |
| Get a view with ranking of a specific leaderboard More... | |
| Promise< LeaderBoardView > | GetAssignedBoard (LeaderboardRef leaderBoard, int from, int max, long? focus=null, long? outlier=null) |
| For partitioned or cohorted leaderboards Get a view with rankings of child leaderboard the current player is assigned to More... | |
| Promise< LeaderBoardView > | GetAssignedBoard (string boardId, int from, int max, long? focus=null, long? outlier=null) |
| For partitioned or cohorted leaderboards Get a view with rankings of child leaderboard the current player is assigned to More... | |
| Promise< LeaderBoardView > | GetRanks (LeaderboardRef leaderBoard, List< long > ids) |
| Get a specific list of rankings by player id/gamertag from a leaderboard More... | |
| Promise< LeaderBoardView > | GetRanks (string boardId, List< long > ids) |
| Get a specific list of rankings by player id/gamertag from a leaderboard More... | |
| Promise< EmptyResponse > | SetScore (LeaderboardRef leaderBoard, double score, IDictionary< string, object > stats=null) |
| Replace the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard More... | |
| Promise< EmptyResponse > | SetScore (string boardId, double score, IDictionary< string, object > stats=null) |
| Replace the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard More... | |
| Promise< EmptyResponse > | IncrementScore (LeaderboardRef leaderBoard, double score, IDictionary< string, object > stats=null) |
| Increment (add to) the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard More... | |
| Promise< EmptyResponse > | IncrementScore (string boardId, double score, IDictionary< string, object > stats=null) |
| Increment (add to) the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard More... | |
| Promise< LeaderBoardView > | GetFriendRanks (LeaderboardRef leaderboard) |
| Get the rankings of the current player's friends participating in this leaderboard More... | |
| Promise< LeaderBoardView > | GetFriendRanks (string boardId) |
| Get the rankings of the current player's friends participating in this leaderboard More... | |
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetAssignedBoard | ( | LeaderboardRef | leaderBoard, |
| int | from, | ||
| int | max, | ||
| long? | focus = null, |
||
| long? | outlier = null |
||
| ) |
For partitioned or cohorted leaderboards Get a view with rankings of child leaderboard the current player is assigned to
| leaderBoard | |
| from | |
| max | |
| focus | |
| outlier |
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetAssignedBoard | ( | string | boardId, |
| int | from, | ||
| int | max, | ||
| long? | focus = null, |
||
| long? | outlier = null |
||
| ) |
For partitioned or cohorted leaderboards Get a view with rankings of child leaderboard the current player is assigned to
| boardId | |
| from | |
| max | |
| focus | |
| outlier |
| Promise< LeaderboardAssignmentInfo > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetAssignment | ( | string | boardId, |
| bool | joinBoard | ||
| ) |
For partitioned or cohorted leaderboards Resolves the specific child leaderboard the player is assigned to e.g. "leaderboards.my_partitioned_board" -> "leaderboards.my_partitioned_board#0" – where #0 denotes the partition identifier
| boardId | Parent Leaderboard Id |
| joinBoard | Join the board if the player is not assigned. |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetBoard | ( | LeaderboardRef | leaderBoard, |
| int | from, | ||
| int | max, | ||
| long? | focus = null, |
||
| long? | outlier = null |
||
| ) |
Get a view with ranking of a specific leaderboard
| leaderBoard | |
| from | |
| max | |
| focus | |
| outlier |
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetBoard | ( | string | boardId, |
| int | from, | ||
| int | max, | ||
| long? | focus = null, |
||
| long? | outlier = null |
||
| ) |
Get a view with ranking of a specific leaderboard
| boardId | |
| from | |
| max | |
| focus | |
| outlier |
| UserDataCache< RankEntry > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetCache | ( | string | boardId | ) |
Get the UserDataCache<RankEntry> with RankEntry values for some leaderboard ID.
| boardId | The leaderboard ID |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetFriendRanks | ( | LeaderboardRef | leaderboard | ) |
Get the rankings of the current player's friends participating in this leaderboard
| leaderboard |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetFriendRanks | ( | string | boardId | ) |
Get the rankings of the current player's friends participating in this leaderboard
| boardId |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetRanks | ( | LeaderboardRef | leaderBoard, |
| List< long > | ids | ||
| ) |
Get a specific list of rankings by player id/gamertag from a leaderboard
| leaderBoard | |
| ids |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< LeaderBoardView > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetRanks | ( | string | boardId, |
| List< long > | ids | ||
| ) |
Get a specific list of rankings by player id/gamertag from a leaderboard
| boardId | |
| ids |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< RankEntry > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetUser | ( | LeaderboardRef | leaderBoard, |
| long | gamerTag | ||
| ) |
Get the rank of a specific player on a specific leaderboard
| leaderBoard | |
| gamerTag |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< RankEntry > Beamable.Common.Api.Leaderboards.ILeaderboardApi.GetUser | ( | string | boardId, |
| long | gamerTag | ||
| ) |
Get the rank of a specific player on a specific leaderboard
| boardId | |
| gamerTag |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< EmptyResponse > Beamable.Common.Api.Leaderboards.ILeaderboardApi.IncrementScore | ( | LeaderboardRef | leaderBoard, |
| double | score, | ||
| IDictionary< string, object > | stats = null |
||
| ) |
Increment (add to) the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard
| leaderBoard | |
| score | |
| stats |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< EmptyResponse > Beamable.Common.Api.Leaderboards.ILeaderboardApi.IncrementScore | ( | string | boardId, |
| double | score, | ||
| IDictionary< string, object > | stats = null |
||
| ) |
Increment (add to) the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard
| boardId | |
| score | |
| stats |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< LeaderboardAssignmentInfo > Beamable.Common.Api.Leaderboards.ILeaderboardApi.ResolveAssignment | ( | string | boardId, |
| long | gamerTag | ||
| ) |
For partitioned or cohorted leaderboards Resolves the specific child leaderboard the player is assigned to Uses a cache to avoid repeat communication with the server
| boardId | |
| gamerTag |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< EmptyResponse > Beamable.Common.Api.Leaderboards.ILeaderboardApi.SetScore | ( | LeaderboardRef | leaderBoard, |
| double | score, | ||
| IDictionary< string, object > | stats = null |
||
| ) |
Replace the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard
| leaderBoard | |
| score | |
| stats |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.
| Promise< EmptyResponse > Beamable.Common.Api.Leaderboards.ILeaderboardApi.SetScore | ( | string | boardId, |
| double | score, | ||
| IDictionary< string, object > | stats = null |
||
| ) |
Replace the score of the current player Cohorted and Partitioned leaderboards will automatically update the correct child leaderboard
| boardId | |
| score | |
| stats |
Implemented in Beamable.Common.Api.Leaderboards.LeaderboardApi.