Beamable SDK
Public Member Functions | List of all members
Beamable.Experimental.Api.Lobbies.LobbyService Class Reference
Inheritance diagram for Beamable.Experimental.Api.Lobbies.LobbyService:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Experimental.Api.Lobbies.LobbyService:
Collaboration graph
[legend]

Public Member Functions

 LobbyService (IBeamableRequester requester, IUserContext userContext)
 
Promise< LobbyQueryResponseFindLobbies ()
 Find lobbies for the player to join. More...
 
Promise< LobbyCreateLobby (string name, LobbyRestriction restriction, SimGameTypeRef gameTypeRef=null, string description=null, List< Tag > playerTags=null, int? maxPlayers=null, int? passcodeLength=null, List< string > statsToInclude=null)
 Create a new Lobby with the current player as the host. More...
 
Promise< LobbyJoinLobby (string lobbyId, List< Tag > playerTags=null)
 Join a Lobby given its id. More...
 
Promise< LobbyJoinLobbyByPasscode (string passcode, List< Tag > playerTags=null)
 Join a Lobby given its passcode. More...
 
Promise< LobbyGetLobby (string lobbyId)
 Fetch the current status of a Lobby. More...
 
Promise LeaveLobby (string lobbyId)
 Notify the given lobby that the player intends to leave. More...
 
Promise< LobbyAddPlayerTags (string lobbyId, List< Tag > tags, string playerId=null, bool replace=false)
 Add a list of Tag to the given player in the given lobby. More...
 
Promise< LobbyRemovePlayerTags (string lobbyId, List< string > tags, string playerId=null)
 Remove a list of tags from the given player in the given Lobby. More...
 
Promise KickPlayer (string lobbyId, string playerId)
 Send a request to the given Lobby to remove the player with the given playerId. If the requesting player doesn't have the capability to boot players, this will throw an exception. More...
 

Member Function Documentation

◆ AddPlayerTags()

Promise< Lobby > Beamable.Experimental.Api.Lobbies.LobbyService.AddPlayerTags ( string  lobbyId,
List< Tag tags,
string  playerId = null,
bool  replace = false 
)
inline

Add a list of Tag to the given player in the given lobby.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ CreateLobby()

Promise< Lobby > Beamable.Experimental.Api.Lobbies.LobbyService.CreateLobby ( string  name,
LobbyRestriction  restriction,
SimGameTypeRef  gameTypeRef = null,
string  description = null,
List< Tag playerTags = null,
int?  maxPlayers = null,
int?  passcodeLength = null,
List< string >  statsToInclude = null 
)
inline

Create a new Lobby with the current player as the host.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ FindLobbies()

Promise< LobbyQueryResponse > Beamable.Experimental.Api.Lobbies.LobbyService.FindLobbies ( )
inline

Find lobbies for the player to join.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ GetLobby()

Promise< Lobby > Beamable.Experimental.Api.Lobbies.LobbyService.GetLobby ( string  lobbyId)
inline

Fetch the current status of a Lobby.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ JoinLobby()

Promise< Lobby > Beamable.Experimental.Api.Lobbies.LobbyService.JoinLobby ( string  lobbyId,
List< Tag playerTags = null 
)
inline

Join a Lobby given its id.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ JoinLobbyByPasscode()

Promise< Lobby > Beamable.Experimental.Api.Lobbies.LobbyService.JoinLobbyByPasscode ( string  passcode,
List< Tag playerTags = null 
)
inline

Join a Lobby given its passcode.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ KickPlayer()

Promise Beamable.Experimental.Api.Lobbies.LobbyService.KickPlayer ( string  lobbyId,
string  playerId 
)
inline

Send a request to the given Lobby to remove the player with the given playerId. If the requesting player doesn't have the capability to boot players, this will throw an exception.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ LeaveLobby()

Promise Beamable.Experimental.Api.Lobbies.LobbyService.LeaveLobby ( string  lobbyId)
inline

Notify the given lobby that the player intends to leave.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.

◆ RemovePlayerTags()

Promise< Lobby > Beamable.Experimental.Api.Lobbies.LobbyService.RemovePlayerTags ( string  lobbyId,
List< string >  tags,
string  playerId = null 
)
inline

Remove a list of tags from the given player in the given Lobby.

Implements Beamable.Experimental.Api.Lobbies.ILobbyApi.


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