Class Revocation
java.lang.Object
com.gmt2001.twitch.eventsub.EventSubSubscriptionType
com.gmt2001.twitch.eventsub.subscriptions.Revocation
- All Implemented Interfaces:
Flow.Subscriber<EventSubInternalEvent>
Handles notification that a webhook has been revoked.
- Author:
- gmt2001
-
Field Summary
Fields inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
flowsubscription, messageId, messageTimestamp, subscription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisMatch(EventSubSubscription subscription) Returns true if the provided subscription is an instance of the current subscription type and matches the current subscription conditionsprotected voidCompiles the parameters of this object into anEventSubSubscriptionthat can be createdvoidValidates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()Methods inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
create, delete, deleteAll, findMatchingSubscriptionId, findMatchingSubscriptionIds, getExistingSubscription, isAlreadySubscribed, messageId, messageTimestamp, onComplete, onError, onEventSubInternalEvent, onEventSubInternalNotificationEvent, onEventSubInternalVerificationEvent, onNext, onSubscribe, proposeSubscriptionInternal, proposeTransport, subscribe, subscription
-
Constructor Details
-
Revocation
public Revocation()Only used by EventSub for handler registration
-
-
Method Details
-
proposeSubscription
Description copied from class:EventSubSubscriptionTypeCompiles the parameters of this object into anEventSubSubscriptionthat can be created- Specified by:
proposeSubscriptionin classEventSubSubscriptionType- Returns:
-
validateParameters
Description copied from class:EventSubSubscriptionTypeValidates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()- Specified by:
validateParametersin classEventSubSubscriptionType- Throws:
IllegalArgumentException- One of the parameters is not acceptable
-
isMatch
Description copied from class:EventSubSubscriptionTypeReturns true if the provided subscription is an instance of the current subscription type and matches the current subscription conditions- Specified by:
isMatchin classEventSubSubscriptionType- Returns:
-
onEventSubInternalRevocationEvent
- Overrides:
onEventSubInternalRevocationEventin classEventSubSubscriptionType
-