Package discord4j.gateway
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionInfo
create(String id, int sequence)
boolean
equals(Object o)
String
getId()
Return the identifier of the session represented by thisSessionInfo
.int
getSequence()
Return the sequence number of the session represented by thisSessionInfo
.int
hashCode()
String
toString()
-
-
-
Method Detail
-
create
public static SessionInfo create(String id, int sequence)
-
getId
public String getId()
Return the identifier of the session represented by thisSessionInfo
.- Returns:
- the session identifier
-
getSequence
public int getSequence()
Return the sequence number of the session represented by thisSessionInfo
.- Returns:
- the session sequence
-
-