Skip to content

Latest commit

 

History

History
145 lines (92 loc) · 9.87 KB

README.md

File metadata and controls

145 lines (92 loc) · 9.87 KB

LobbiesV1

(LobbiesV1)

Overview

Available Operations

CreatePrivateLobbyDeprecated

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Operations;
using HathoraCloud.Models.Shared;

var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");

CreatePrivateLobbyDeprecatedRequest req = new CreatePrivateLobbyDeprecatedRequest() {};


using(var res = await sdk.LobbiesV1.CreatePrivateLobbyDeprecatedAsync(
    security: new CreatePrivateLobbyDeprecatedSecurity() {
        PlayerAuth = "<YOUR_BEARER_TOKEN_HERE>",
    },
    req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request CreatePrivateLobbyDeprecatedRequest ✔️ The request object to use for the request.
security HathoraCloud.Models.Operations.CreatePrivateLobbyDeprecatedSecurity ✔️ The security requirements to use for the request.

Response

CreatePrivateLobbyDeprecatedResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 400,401,402,404,422,429,500 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

CreatePublicLobbyDeprecated

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Operations;
using HathoraCloud.Models.Shared;

var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");

CreatePublicLobbyDeprecatedRequest req = new CreatePublicLobbyDeprecatedRequest() {};


using(var res = await sdk.LobbiesV1.CreatePublicLobbyDeprecatedAsync(
    security: new CreatePublicLobbyDeprecatedSecurity() {
        PlayerAuth = "<YOUR_BEARER_TOKEN_HERE>",
    },
    req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request CreatePublicLobbyDeprecatedRequest ✔️ The request object to use for the request.
security HathoraCloud.Models.Operations.CreatePublicLobbyDeprecatedSecurity ✔️ The security requirements to use for the request.

Response

CreatePublicLobbyDeprecatedResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 400,401,402,404,422,429,500 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

ListActivePublicLobbiesDeprecatedV1

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;

var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");

ListActivePublicLobbiesDeprecatedV1Request req = new ListActivePublicLobbiesDeprecatedV1Request() {};


using(var res = await sdk.LobbiesV1.ListActivePublicLobbiesDeprecatedV1Async(req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request ListActivePublicLobbiesDeprecatedV1Request ✔️ The request object to use for the request.

Response

ListActivePublicLobbiesDeprecatedV1Response

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 404,429 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /