ServerJoinResult
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.
Web API reply to a request to join a game server: whether it's allowed, why not, and the connection details and token if so.
- Listed in Alta.Api.DataTransferModels
Constructors
| Member | What it is |
|---|---|
ServerJoinResult() | Creates a ServerJoinResult with default values. |
Properties
| Member | What it is |
|---|---|
ConnectionInfo ConnectionInfo { get; set; } | Address and ports to connect to when the join is allowed. |
ServerJoinFailResult FailReason { get; set; } | Why the join failed, as a ServerJoinFailResult. |
bool IsAllowed { get; set; } | True when the player may join. |
bool IsColdStart { get; set; } | Set by the API (cold_start); probably means the server had to be started for this join. |
string Message { get; set; } | Human-readable message, set on failure. |
int ServerIdentifier { get; set; } | ID of the server the result is for. |
JwtSecurityToken Token { get; set; } | JWT the client presents to the game server when connecting. |
bool WasRejected { get; set; } | True when the join was refused, as opposed to just not allowed yet. |
Methods
| Member | What it is |
|---|---|
void SetToFailState(string failMessage, ServerJoinFailResult failReason) | Marks the result as rejected and sets the message and fail reason. |
Used in
Members of other types that take, return or hold a ServerJoinResult:
IServerApiClient.ConnectConsole, IServerApiClient.JoinServer, OfflineServerApiClient.ConnectConsole, OfflineServerApiClient.JoinServer, ServerApiClient.ConnectConsole, ServerApiClient.JoinServer, LowLevelApiClient.ConnectConsole, LowLevelApiClient.JoinServer, GameServerInfoExtensions.JoinServerAsync, JoinServerPipeline.joinResult.