Class SocketPayload
java.lang.Object
com.github.twitch4j.eventsub.socket.domain.SocketPayload
An object that contains the EventSub Websocket message.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@Nullable Object
The event’s data.@Nullable EventSubEvent
@Nullable EventSubSocketInformation
An object that contains information about the connection.@Nullable EventSubSubscription
An object that contains information about your subscription.int
hashCode()
toString()
-
Constructor Details
-
SocketPayload
public SocketPayload()
-
-
Method Details
-
getParsedEvent
- Returns:
- the parsed event data from raw Map to
EventSubEvent
, or null if this payload does not represent a notification.
-
getSession
An object that contains information about the connection.Present if
SocketMessageMetadata.getMessageType()
is:SocketMessageType.SESSION_WELCOME
orSocketMessageType.SESSION_RECONNECT
. -
getSubscription
An object that contains information about your subscription.Present if
SocketMessageMetadata.getMessageType()
is:SocketMessageType.NOTIFICATION
orSocketMessageType.REVOCATION
. -
getEventData
The event’s data.For information about the event’s data, see the subscription type’s description in Subscription Types.
Present only if
SocketMessageMetadata.getMessageType()
isSocketMessageType.NOTIFICATION
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-