Package com.github.twitch4j.eventsub
Class EventSubNotification
java.lang.Object
com.github.twitch4j.eventsub.EventSubNotification
public class EventSubNotification
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description EventSubNotification(EventSubSubscription subscription, EventSubEvent event, java.lang.String challenge) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetChallenge()The value of challenge from the callback verification request must be returned to complete the verification process.EventSubEventgetEvent()The event information.EventSubSubscriptiongetSubscription()Metadata about the subscription.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
EventSubNotification
public EventSubNotification(EventSubSubscription subscription, EventSubEvent event, java.lang.String challenge)
-
-
Method Details
-
getSubscription
Metadata about the subscription. -
getEvent
The event information. The fields inside this object differ by subscription type. -
getChallenge
public java.lang.String getChallenge()The value of challenge from the callback verification request must be returned to complete the verification process. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-