Class AutomodMessageHold
java.lang.Object
com.gmt2001.twitch.eventsub.EventSubSubscriptionType
com.gmt2001.twitch.eventsub.subscriptions.automod.message.AutomodMessage
com.gmt2001.twitch.eventsub.subscriptions.automod.message.AutomodMessageHold
- All Implemented Interfaces:
Flow.Subscriber<EventSubInternalEvent>
-
Field Summary
FieldsFields inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
flowsubscription, messageId, messageTimestamp, subscription
-
Constructor Summary
ConstructorsConstructorDescriptionOnly used by EventSub for handler registrationUsed byonEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)
to construct an object from an incoming notificationAutomodMessageHold
(String broadcaster_user_id) ConstructorAutomodMessageHold
(String broadcaster_user_id, String moderator_user_id) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isMatch
(EventSubSubscription subscription) Returns true if the provided subscription is an instance of the current subscription type and matches the current subscription conditionsprotected void
protected EventSubSubscription
Compiles the parameters of this object into anEventSubSubscription
that can be createdMethods inherited from class com.gmt2001.twitch.eventsub.subscriptions.automod.message.AutomodMessage
broadcasterUserId, broadcasterUserLogin, broadcasterUserName, category, heldAt, heldAtString, level, message, messageId, moderatorUserId, userId, userLogin, userName, validateParameters
Methods inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
create, delete, deleteAll, findMatchingSubscriptionId, findMatchingSubscriptionIds, getExistingSubscription, isAlreadySubscribed, messageTimestamp, onComplete, onError, onEventSubInternalEvent, onEventSubInternalRevocationEvent, onEventSubInternalVerificationEvent, onNext, onSubscribe, proposeSubscriptionInternal, proposeTransport, subscribe, subscription
-
Field Details
-
TYPE
- See Also:
-
VERSION
- See Also:
-
-
Constructor Details
-
AutomodMessageHold
public AutomodMessageHold()Only used by EventSub for handler registration -
AutomodMessageHold
Used byonEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)
to construct an object from an incoming notification- Parameters:
e
- The event
-
AutomodMessageHold
Constructor- Parameters:
broadcaster_user_id
- The user id of the broadcaster
-
AutomodMessageHold
Constructor- Parameters:
broadcaster_user_id
- The user id of the broadcastermoderator_user_id
- The ID of the moderator of the channel you want to get notifications for. If you have authorization from the broadcaster rather than a moderator, specify the broadcaster's user ID here
-
-
Method Details
-
proposeSubscription
Description copied from class:EventSubSubscriptionType
Compiles the parameters of this object into anEventSubSubscription
that can be created- Specified by:
proposeSubscription
in classEventSubSubscriptionType
- Returns:
-
onEventSubInternalNotificationEvent
- Overrides:
onEventSubInternalNotificationEvent
in classEventSubSubscriptionType
-
isMatch
Description copied from class:EventSubSubscriptionType
Returns true if the provided subscription is an instance of the current subscription type and matches the current subscription conditions- Specified by:
isMatch
in classEventSubSubscriptionType
- Returns:
-