Class ChannelSubscribeType
java.lang.Object
com.github.twitch4j.eventsub.subscriptions.ChannelSubscribeType
- All Implemented Interfaces:
SubscriptionType<ChannelSubscribeCondition,ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>,ChannelSubscribeEvent>
public class ChannelSubscribeType extends java.lang.Object implements SubscriptionType<ChannelSubscribeCondition,ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>,ChannelSubscribeEvent>
A notification when a specified channel receives a subscriber.
This does not include resubscribes.
Must have channel:read:subscriptions scope.
-
Constructor Summary
Constructors Constructor Description ChannelSubscribeType() -
Method Summary
Modifier and Type Method Description ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>getConditionBuilder()The parameters inside these objects differ by subscription type and may differ by version.java.lang.Class<ChannelSubscribeEvent>getEventClass()java.lang.StringgetName()java.lang.StringgetVersion()Methods 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
-
ChannelSubscribeType
public ChannelSubscribeType()
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceSubscriptionType<ChannelSubscribeCondition,ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>,ChannelSubscribeEvent>- Returns:
- the subscription type name.
-
getVersion
public java.lang.String getVersion()- Specified by:
getVersionin interfaceSubscriptionType<ChannelSubscribeCondition,ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>,ChannelSubscribeEvent>- Returns:
- the subscription type version.
-
getConditionBuilder
Description copied from interface:SubscriptionTypeThe parameters inside these objects differ by subscription type and may differ by version.- Specified by:
getConditionBuilderin interfaceSubscriptionType<ChannelSubscribeCondition,ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>,ChannelSubscribeEvent>- Returns:
- Subscription-specific parameter builder.
-
getEventClass
- Specified by:
getEventClassin interfaceSubscriptionType<ChannelSubscribeCondition,ChannelSubscribeCondition.ChannelSubscribeConditionBuilder<?,?>,ChannelSubscribeEvent>- Returns:
- the associated event class for this subscription type.
-