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 SessionInfocreate(String id, int sequence)booleanequals(Object o)StringgetId()Return the identifier of the session represented by thisSessionInfo.intgetSequence()Return the sequence number of the session represented by thisSessionInfo.inthashCode()StringtoString()
-
-
-
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
-
-