Class JoinByCodeRequest
Namespace: Unity.Services.Lobbies.Models
Syntax
[Preserve]
public class JoinByCodeRequest
Constructors
JoinByCodeRequest(String, Player)
The body of a Join Lobby request using lobby code.
Declaration
[Preserve]
public JoinByCodeRequest(string lobbyCode, Player player = null)
Parameters
Type | Name | Description |
---|---|---|
String | lobbyCode | The lobby code of the lobby to join. Mutually exclusive with |
Player | player | player param |
Properties
LobbyCode
The lobby code of the lobby to join. Mutually exclusive with id
. This is used to join a private lobby where the lobby code was shared to other users manually.
Declaration
[Preserve]
public string LobbyCode { get; }
Property Value
Type | Description |
---|---|
String |
Player
Declaration
[Preserve]
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |