Beamable SDK
Public Member Functions | List of all members
Beamable.Api.Leaderboard.LeaderboardService Class Reference

This type defines the Client main entry point for the Leaderboards feature. More...

Inheritance diagram for Beamable.Api.Leaderboard.LeaderboardService:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.Leaderboard.LeaderboardService:
Collaboration graph
[legend]

Public Member Functions

 LeaderboardService (IPlatformService platform, IBeamableRequester requester, IDependencyProvider provider, UserDataCache< RankEntry >.FactoryFunction cacheFactory)
 
- Public Member Functions inherited from Beamable.Common.Api.Leaderboards.LeaderboardApi
 LeaderboardApi (IBeamableRequester requester, IUserContext userContext, IDependencyProvider provider, UserDataCache< RankEntry >.FactoryFunction factoryFunction)
 
UserDataCache< RankEntryGetCache (string boardId)
 Get the UserDataCache<RankEntry> with RankEntry values for some leaderboard ID. More...
 
Promise< LeaderboardAssignmentInfoGetAssignment (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< LeaderboardAssignmentInfoResolveAssignment (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< RankEntryGetUser (LeaderboardRef leaderBoard, long gamerTag)
 Get the rank of a specific player on a specific leaderboard More...
 
Promise< RankEntryGetUser (string boardId, long gamerTag)
 Get the rank of a specific player on a specific leaderboard More...
 
Promise< LeaderBoardViewGetBoard (LeaderboardRef leaderBoard, int @from, int max, long? focus=null, long? outlier=null)
 
Promise< LeaderBoardViewGetBoard (string boardId, int @from, int max, long? focus=null, long? outlier=null)
 
Promise< LeaderBoardViewGetAssignedBoard (string boardId, int @from, int max, long? focus=null, long? outlier=null)
 
Promise< LeaderBoardViewGetAssignedBoard (LeaderboardRef leaderBoard, int @from, int max, long? focus=null, long? outlier=null)
 
Promise< LeaderBoardViewGetFriendRanks (LeaderboardRef leaderboard)
 Get the rankings of the current player's friends participating in this leaderboard More...
 
Promise< LeaderBoardViewGetFriendRanks (string boardId)
 Get the rankings of the current player's friends participating in this leaderboard More...
 
Promise< LeaderBoardViewGetRanks (LeaderboardRef leaderBoard, List< long > ids)
 Get a specific list of rankings by player id/gamertag from a leaderboard More...
 
Promise< LeaderBoardViewGetRanks (string boardId, List< long > ids)
 Get a specific list of rankings by player id/gamertag from a leaderboard More...
 
Promise< EmptyResponseSetScore (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< EmptyResponseSetScore (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< EmptyResponseIncrementScore (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< EmptyResponseIncrementScore (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...
 
- Public Member Functions inherited from Beamable.Common.Api.Leaderboards.ILeaderboardApi
Promise< LeaderBoardViewGetBoard (LeaderboardRef leaderBoard, int from, int max, long? focus=null, long? outlier=null)
 Get a view with ranking of a specific leaderboard More...
 
Promise< LeaderBoardViewGetBoard (string boardId, int from, int max, long? focus=null, long? outlier=null)
 Get a view with ranking of a specific leaderboard More...
 
Promise< LeaderBoardViewGetAssignedBoard (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< LeaderBoardViewGetAssignedBoard (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...
 

Additional Inherited Members

- Protected Member Functions inherited from Beamable.Common.Api.Leaderboards.LeaderboardApi
Promise< EmptyResponseUpdate (string boardId, double score, bool increment=false, IDictionary< string, object > stats=null)
 
- Properties inherited from Beamable.Common.Api.Leaderboards.LeaderboardApi
IBeamableRequester Requester [get]
 
IUserContext UserContext [get]
 
IDependencyProvider Provider [get]
 

Detailed Description

This type defines the Client main entry point for the Leaderboards feature.

Related Links

img beamable-logo


The documentation for this class was generated from the following file: