Class Session

java.lang.Object
io.gs2.gateway.model.Session
All Implemented Interfaces:
IModel, Serializable, Comparable<Session>

public class Session extends Object implements IModel, Serializable, Comparable<Session>
WebSocketセッション
Author:
Game Server Services, Inc.
See Also:
  • Field Details

    • sessionId

      protected String sessionId
      WebSocketセッション のGRN
    • ownerId

      protected String ownerId
      オーナーID
    • userId

      protected String userId
      ユーザーID
    • sessionName

      protected String sessionName
      WebSocketセッション名
    • apiId

      protected String apiId
      API Gateway の APIID
    • createdAt

      protected Long createdAt
      作成日時
    • updatedAt

      protected Long updatedAt
      最終更新日時
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • getSessionId

      public String getSessionId()
      WebSocketセッション のGRNを取得
      Returns:
      WebSocketセッション のGRN
    • setSessionId

      public void setSessionId(String sessionId)
      WebSocketセッション のGRNを設定
      Parameters:
      sessionId - WebSocketセッション のGRN
    • withSessionId

      public Session withSessionId(String sessionId)
      WebSocketセッション のGRNを設定
      Parameters:
      sessionId - WebSocketセッション のGRN
      Returns:
      this
    • getOwnerId

      public String getOwnerId()
      オーナーIDを取得
      Returns:
      オーナーID
    • setOwnerId

      public void setOwnerId(String ownerId)
      オーナーIDを設定
      Parameters:
      ownerId - オーナーID
    • withOwnerId

      public Session withOwnerId(String ownerId)
      オーナーIDを設定
      Parameters:
      ownerId - オーナーID
      Returns:
      this
    • getUserId

      public String getUserId()
      ユーザーIDを取得
      Returns:
      ユーザーID
    • setUserId

      public void setUserId(String userId)
      ユーザーIDを設定
      Parameters:
      userId - ユーザーID
    • withUserId

      public Session withUserId(String userId)
      ユーザーIDを設定
      Parameters:
      userId - ユーザーID
      Returns:
      this
    • getSessionName

      public String getSessionName()
      WebSocketセッション名を取得
      Returns:
      WebSocketセッション名
    • setSessionName

      public void setSessionName(String sessionName)
      WebSocketセッション名を設定
      Parameters:
      sessionName - WebSocketセッション名
    • withSessionName

      public Session withSessionName(String sessionName)
      WebSocketセッション名を設定
      Parameters:
      sessionName - WebSocketセッション名
      Returns:
      this
    • getApiId

      public String getApiId()
      API Gateway の APIIDを取得
      Returns:
      API Gateway の APIID
    • setApiId

      public void setApiId(String apiId)
      API Gateway の APIIDを設定
      Parameters:
      apiId - API Gateway の APIID
    • withApiId

      public Session withApiId(String apiId)
      API Gateway の APIIDを設定
      Parameters:
      apiId - API Gateway の APIID
      Returns:
      this
    • getCreatedAt

      public Long getCreatedAt()
      作成日時を取得
      Returns:
      作成日時
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
      作成日時を設定
      Parameters:
      createdAt - 作成日時
    • withCreatedAt

      public Session withCreatedAt(Long createdAt)
      作成日時を設定
      Parameters:
      createdAt - 作成日時
      Returns:
      this
    • getUpdatedAt

      public Long getUpdatedAt()
      最終更新日時を取得
      Returns:
      最終更新日時
    • setUpdatedAt

      public void setUpdatedAt(Long updatedAt)
      最終更新日時を設定
      Parameters:
      updatedAt - 最終更新日時
    • withUpdatedAt

      public Session withUpdatedAt(Long updatedAt)
      最終更新日時を設定
      Parameters:
      updatedAt - 最終更新日時
      Returns:
      this
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
    • compareTo

      public int compareTo(Session o)
      Specified by:
      compareTo in interface Comparable<Session>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object