(lobbiesV1())
createPrivateLobbyDeprecated- CreatePrivateLobbyDeprecated⚠️ DeprecatedcreatePublicLobbyDeprecated- CreatePublicLobbyDeprecated⚠️ DeprecatedlistActivePublicLobbiesDeprecatedV1- ListActivePublicLobbiesDeprecatedV1⚠️ Deprecated
CreatePrivateLobbyDeprecated
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedResponse;
import dev.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedSecurity;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.build();
CreatePrivateLobbyDeprecatedResponse res = sdk.lobbiesV1().createPrivateLobbyDeprecated()
.security(CreatePrivateLobbyDeprecatedSecurity.builder()
.playerAuth(System.getenv().getOrDefault("PLAYER_AUTH", ""))
.build())
.local(false)
.call();
if (res.roomId().isPresent()) {
// handle response
}
}
}| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
security |
dev.hathora.cloud_sdk.models.operations.CreatePrivateLobbyDeprecatedSecurity | ✔️ | The security requirements to use for the request. | |
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
local |
Optional<Boolean> | ➖ | N/A | |
region |
Optional<Region> | ➖ | N/A |
CreatePrivateLobbyDeprecatedResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ApiError | 400, 401, 402, 404, 408, 422, 429 | application/json |
| models/errors/ApiError | 500 | application/json |
| models/errors/SDKError | 4XX, 5XX | */* |
CreatePublicLobbyDeprecated
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.CreatePublicLobbyDeprecatedResponse;
import dev.hathora.cloud_sdk.models.operations.CreatePublicLobbyDeprecatedSecurity;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.build();
CreatePublicLobbyDeprecatedResponse res = sdk.lobbiesV1().createPublicLobbyDeprecated()
.security(CreatePublicLobbyDeprecatedSecurity.builder()
.playerAuth(System.getenv().getOrDefault("PLAYER_AUTH", ""))
.build())
.local(false)
.call();
if (res.roomId().isPresent()) {
// handle response
}
}
}| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
security |
dev.hathora.cloud_sdk.models.operations.CreatePublicLobbyDeprecatedSecurity | ✔️ | The security requirements to use for the request. | |
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
local |
Optional<Boolean> | ➖ | N/A | |
region |
Optional<Region> | ➖ | N/A |
CreatePublicLobbyDeprecatedResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ApiError | 400, 401, 402, 404, 408, 422, 429 | application/json |
| models/errors/ApiError | 500 | application/json |
| models/errors/SDKError | 4XX, 5XX | */* |
ListActivePublicLobbiesDeprecatedV1
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.ListActivePublicLobbiesDeprecatedV1Response;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.build();
ListActivePublicLobbiesDeprecatedV1Response res = sdk.lobbiesV1().listActivePublicLobbiesDeprecatedV1()
.local(false)
.call();
if (res.classes().isPresent()) {
// handle response
}
}
}| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
appId |
Optional<String> | ➖ | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 |
local |
Optional<Boolean> | ➖ | N/A | |
region |
Optional<Region> | ➖ | N/A |
ListActivePublicLobbiesDeprecatedV1Response
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ApiError | 404, 408, 422, 429 | application/json |
| models/errors/SDKError | 4XX, 5XX | */* |