All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.accelbyte.sdk.api.session.wrappers.GameSession Maven / Gradle / Ivy

/*
 * Copyright (c) 2022 AccelByte Inc. All Rights Reserved
 * This is licensed software from AccelByte Inc, for limitations
 * and restrictions contact your company contract manager.
 *
 * Code generated. DO NOT EDIT.
 */

package net.accelbyte.sdk.api.session.wrappers;

import net.accelbyte.sdk.api.session.models.*;
import net.accelbyte.sdk.api.session.operations.game_session.*;
import net.accelbyte.sdk.core.HttpResponse;
import net.accelbyte.sdk.core.RequestRunner;

public class GameSession {

  private RequestRunner sdk;

  public GameSession(RequestRunner sdk) {
    this.sdk = sdk;
  }

  /**
   * @see AdminQueryGameSessions
   */
  public ApimodelsGameSessionQueryResponse adminQueryGameSessions(AdminQueryGameSessions input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see AdminQueryGameSessionsByAttributes
   */
  public ApimodelsGameSessionQueryResponse adminQueryGameSessionsByAttributes(
      AdminQueryGameSessionsByAttributes input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see AdminDeleteBulkGameSessions
   */
  public ApimodelsDeleteBulkGameSessionsAPIResponse adminDeleteBulkGameSessions(
      AdminDeleteBulkGameSessions input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see AdminSetDSReady
   */
  public void adminSetDSReady(AdminSetDSReady input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    input.handleEmptyResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see AdminUpdateGameSessionMember
   */
  public ApimodelsUpdateGameSessionMemberStatusResponse adminUpdateGameSessionMember(
      AdminUpdateGameSessionMember input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see CreateGameSession
   */
  public ApimodelsGameSessionResponse createGameSession(CreateGameSession input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicQueryGameSessionsByAttributes
   */
  public ApimodelsGameSessionQueryResponse publicQueryGameSessionsByAttributes(
      PublicQueryGameSessionsByAttributes input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicSessionJoinCode
   */
  public ApimodelsGameSessionResponse publicSessionJoinCode(PublicSessionJoinCode input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see GetGameSessionByPodName
   */
  public ApimodelsGameSessionResponse getGameSessionByPodName(GetGameSessionByPodName input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see GetGameSession
   */
  public ApimodelsGameSessionResponse getGameSession(GetGameSession input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see UpdateGameSession
   */
  public ApimodelsGameSessionResponse updateGameSession(UpdateGameSession input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see DeleteGameSession
   */
  public void deleteGameSession(DeleteGameSession input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    input.handleEmptyResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PatchUpdateGameSession
   */
  public ApimodelsGameSessionResponse patchUpdateGameSession(PatchUpdateGameSession input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see UpdateGameSessionBackfillTicketID
   */
  public ApimodelsGameSessionResponse updateGameSessionBackfillTicketID(
      UpdateGameSessionBackfillTicketID input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see GameSessionGenerateCode
   */
  public ApimodelsGameSessionResponse gameSessionGenerateCode(GameSessionGenerateCode input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicRevokeGameSessionCode
   */
  public void publicRevokeGameSessionCode(PublicRevokeGameSessionCode input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    input.handleEmptyResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicGameSessionInvite
   */
  public void publicGameSessionInvite(PublicGameSessionInvite input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    input.handleEmptyResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see JoinGameSession
   */
  public ApimodelsGameSessionResponse joinGameSession(JoinGameSession input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicPromoteGameSessionLeader
   */
  public ApimodelsGameSessionResponse publicPromoteGameSessionLeader(
      PublicPromoteGameSessionLeader input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see LeaveGameSession
   */
  public void leaveGameSession(LeaveGameSession input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    input.handleEmptyResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicGameSessionReject
   */
  public void publicGameSessionReject(PublicGameSessionReject input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    input.handleEmptyResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see GetSessionServerSecret
   */
  public ApimodelsServerSecret getSessionServerSecret(GetSessionServerSecret input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see AppendTeamGameSession
   */
  public ApimodelsGameSessionResponse appendTeamGameSession(AppendTeamGameSession input)
      throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }

  /**
   * @see PublicQueryMyGameSessions
   */
  public ApimodelsGameSessionQueryResponse publicQueryMyGameSessions(
      PublicQueryMyGameSessions input) throws Exception {
    final HttpResponse httpResponse = sdk.runRequest(input);
    return input.parseResponse(
        httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy