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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe parameters inside these objects differ by subscription type and may differ by version.getName()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.twitch4j.eventsub.subscriptions.SubscriptionType
getConditionClass, prepareSubscription
-
Constructor Details
-
DropEntitlementGrantType
public DropEntitlementGrantType()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceSubscriptionType<DropEntitlementGrantCondition,DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- the subscription type name.
-
getVersion
- Specified by:
getVersionin interfaceSubscriptionType<DropEntitlementGrantCondition,DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- the subscription type version.
-
getConditionBuilder
public DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?,?> getConditionBuilder()Description copied from interface:SubscriptionTypeThe parameters inside these objects differ by subscription type and may differ by version.- Specified by:
getConditionBuilderin interfaceSubscriptionType<DropEntitlementGrantCondition,DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- Subscription-specific parameter builder.
-
getEventClass
- Specified by:
getEventClassin interfaceSubscriptionType<DropEntitlementGrantCondition,DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- the associated event class for this subscription type.
-
isBatchingEnabled
public boolean isBatchingEnabled()- Specified by:
isBatchingEnabledin interfaceSubscriptionType<DropEntitlementGrantCondition,DropEntitlementGrantCondition.DropEntitlementGrantConditionBuilder<?, ?>, BatchedDropEntitlementGrantEvents> - Returns:
- whether Twitch batches events for this subscription type.
-