Package com.github.twitch4j.eventsub
Class EventSubNotification
java.lang.Object
com.github.twitch4j.eventsub.EventSubNotification
-
Constructor Summary
ConstructorDescriptionEventSubNotification
(EventSubSubscription subscription, EventSubEvent event, @Nullable String challenge) Creates a newEventSubNotification
instance. -
Method Summary
-
Constructor Details
-
EventSubNotification
public EventSubNotification(EventSubSubscription subscription, EventSubEvent event, @Nullable @Nullable String challenge) Creates a newEventSubNotification
instance.- Parameters:
subscription
- Metadata about the subscription.event
- The event information. The fields inside this object differ by subscription type.challenge
- The value of challenge from the callback verification request must be returned to complete the verification process.Note: websocket subscriptions do not involve a challenge handshake.
-
-
Method Details
-
getSubscription
Metadata about the subscription. -
getEvent
The event information. The fields inside this object differ by subscription type. -
getChallenge
The value of challenge from the callback verification request must be returned to complete the verification process.Note: websocket subscriptions do not involve a challenge handshake.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-