Class DropEntitlementGrantType
java.lang.Object
com.github.twitch4j.eventsub.subscriptions.DropEntitlementGrantType
- All Implemented Interfaces:
SubscriptionType<DropEntitlementGrantCondition,
DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents>
public class DropEntitlementGrantType
extends Object
implements SubscriptionType<DropEntitlementGrantCondition,DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?,?>,BatchedDropEntitlementGrantEvents>
This subscription type sends a notification when an entitlement for a Drop is granted to a user.
The client ID associated with the app access token must be owned by a user who is part of the specified organization.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe parameters inside these objects differ by subscription type and may differ by version.getName()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.twitch4j.eventsub.subscriptions.SubscriptionType
getConditionClass, prepareSubscription
-
Constructor Details
-
DropEntitlementGrantType
public DropEntitlementGrantType()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceSubscriptionType<DropEntitlementGrantCondition,
DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- the subscription type name.
-
getVersion
- Specified by:
getVersion
in interfaceSubscriptionType<DropEntitlementGrantCondition,
DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- the subscription type version.
-
getConditionBuilder
public DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?,?> getConditionBuilder()Description copied from interface:SubscriptionType
The parameters inside these objects differ by subscription type and may differ by version.- Specified by:
getConditionBuilder
in interfaceSubscriptionType<DropEntitlementGrantCondition,
DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- Subscription-specific parameter builder.
-
getEventClass
- Specified by:
getEventClass
in interfaceSubscriptionType<DropEntitlementGrantCondition,
DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- the associated event class for this subscription type.
-
isBatchingEnabled
public boolean isBatchingEnabled()- Specified by:
isBatchingEnabled
in interfaceSubscriptionType<DropEntitlementGrantCondition,
DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- whether Twitch batches events for this subscription type.
-