Class GameSessionStartPayload

java.lang.Object
live.crowdcontrol.cc4j.websocket.http.GameSessionStartPayload

public class GameSessionStartPayload extends Object
Data returned by the server when trying to start a session.
  • Constructor Details

    • GameSessionStartPayload

      public GameSessionStartPayload(@NotNull @NotNull String gameSessionID, @Nullable @Nullable String createdAt)
      Creates data.
      Parameters:
      gameSessionID - ID of the game session
      createdAt - when the session was started
    • GameSessionStartPayload

      public GameSessionStartPayload(@NotNull @NotNull String gameSessionID)
      Creates data.
      Parameters:
      gameSessionID - ID of the game session
  • Method Details

    • getGameSessionId

      @NotNull public @NotNull String getGameSessionId()
      Gets the ID of the game session.
      Returns:
      gameSessionID
    • getCreatedAt

      @NotNull public @NotNull String getCreatedAt()
      Gets the time the session started at.
      Returns:
      createdAt