Beamable SDK
Public Member Functions | List of all members
Beamable.Api.Tournaments.TournamentService Class Reference

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

Inheritance diagram for Beamable.Api.Tournaments.TournamentService:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.Tournaments.TournamentService:
Collaboration graph
[legend]

Public Member Functions

 TournamentService (StatsService stats, IBeamableRequester requester, IUserContext ctx)
 
- Public Member Functions inherited from Beamable.Common.Api.Tournaments.TournamentApi
 TournamentApi (IStatsApi stats, IBeamableRequester requester, IUserContext ctx)
 
Promise< TournamentInfoGetTournamentInfo (string tournamentContentId)
 Find the first TournamentInfo that matches the given tournament content id. More...
 
Promise< TournamentInfoResponseGetAllTournaments (string contentId=null, int? cycle=null, bool? isRunning=null)
 Find all the tournaments that match given criteria. More...
 
Promise< TournamentChampionsResponseGetChampions (string tournamentId, int cycleLimit=30)
 Tournament champions are players who came in first across all stages and tiers for a given cycle. This method will fetch the latest cycle winners. Use the GetStandings method to get the standings for the current player's stage and tier. More...
 
Promise< TournamentStandingsResponseGetGlobalStandings (string tournamentId, int cycle=-1, int from=-1, int max=-1, int focus=-1)
 Players participating in a tournament are segmented into different leaderboard partitions to limit the size of the leaderboard any given player sees. Global standings are the scores across all stages, tiers, and partitions. Use the GetStandings method to get the standings for the current player's stage and tier. More...
 
Promise< TournamentStandingsResponseGetStandings (string tournamentId, int cycle=-1, int from=-1, int max=-1, int focus=-1)
 Retrieve the scores for the current player's stage and tier in the tournament. More...
 
Promise< TournamentRewardsResponseGetUnclaimedRewards (string tournamentId)
 Retrieve a list of unclaimed rewards that the current player has earned from previous cycles of a tournament. This method can be used to show a player what rewards they will acquire before they are claimed. Use the ClaimAllRewards method to actually claim the rewards. Use the GetPlayerStatus method to identify tournaments that the player is participating in. More...
 
Promise< TournamentRewardsResponseClaimAllRewards (string tournamentId)
 Claim all rewards that the current player has earned for previous cycles of a tournament. If you need to show the rewards before claiming them, use the GetUnclaimedRewards method. Use the GetPlayerStatus method to identify tournaments that the player is participating in. More...
 
Promise< TournamentPlayerStatusJoinTournament (string tournamentId, double startScore=0)
 A player must join a tournament before they can submit scores with the SetScore method. Once a player has joined a tournament, they will be given scores for all future cycles of the tournament. There is no way to leave a tournament. More...
 
Promise< UnitSetScore (string tournamentId, long dbid, double score, bool incrementScore=false)
 Set the tournament score for the given dbid. The player must have joined the tournament using the JoinTournament method before they can submit scores. More...
 
Promise< TournamentPlayerStatusResponseGetPlayerStatus (string tournamentId=null, string contentId=null, bool? hasUnclaimedRewards=null)
 Retrieve a set of TournamentPlayerStatuss for all matching tournaments. The TournamentPlayerStatus is a view of a tournament for the current player. More...
 
Promise< TournamentGroupStatusResponseGetGroupStatus (string tournamentId=null, string contentId=null)
 Retrieve a set of TournamentGroupStatuss for all matching tournaments. The TournamentGroupStatus is a view of a tournament for the current player, for the player's group. More...
 
Promise< TournamentGroupStatusResponseGetGroupStatuses (List< long > groupIds, string contentId)
 Retrieve a set of TournamentGroupStatuss for some set of groups for all tournaments that were spawned from the given content id. More...
 
Promise< string > GetPlayerAlias (long playerId, string statName="alias")
 A utility function to get the alias for a given player. The alias will be found by looking at the player's public stat values. More...
 
Promise< string > GetPlayerAvatar (long playerId, string statName="avatar")
 A utility function to get the avatar key for a given player. The avatar key will be found by looking at the player's public stat values. More...
 
Promise< TournamentStandingsResponseGetGroupPlayers (string tournamentId, int cycle=-1, int from=-1, int max=-1, int focus=-1)
 Retrieve scores for the the group members in the current player's group. More...
 
Promise< TournamentGroupsResponseGetGroups (string tournamentId, int cycle=-1, int from=-1, int max=-1, int focus=-1)
 Retrieve the tournament scores for player groups. When groups participate in leaderboards, the group's score is the sum of all participating members in the group. More...
 

Detailed Description

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

Related Links

img beamable-logo


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