Class SessionInfo

java.lang.Object
discord4j.gateway.SessionInfo

public class SessionInfo extends Object
A container to represent the current state of a Gateway session.
  • Method Details

    • create

      public static SessionInfo create(String id, int sequence)
    • getId

      public String getId()
      Return the identifier of the session represented by this SessionInfo.
      Returns:
      the session identifier
    • getSequence

      public int getSequence()
      Return the sequence number of the session represented by this SessionInfo.
      Returns:
      the session sequence
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object