Class ChannelGoalProgressType
java.lang.Object
com.github.twitch4j.eventsub.subscriptions.ChannelGoalProgressType
- All Implemented Interfaces:
SubscriptionType<CreatorGoalsCondition,CreatorGoalsCondition.CreatorGoalsConditionBuilder<?, ?>, CreatorGoalsProgressEvent>
public class ChannelGoalProgressType
extends Object
implements SubscriptionType<CreatorGoalsCondition,CreatorGoalsCondition.CreatorGoalsConditionBuilder<?,?>,CreatorGoalsProgressEvent>
Notifies the subscriber when progress is made towards the specified broadcaster’s goal.
Progress could be positive (added followers) or negative (lost followers).
NOTE: It’s possible to receive Progress events before receiving the Begin event.
Authorization: Requires a user OAuth access token with scope set to channel:read:goals.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe parameters inside these objects differ by subscription type and may differ by version.getName()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, isBatchingEnabled, prepareSubscription
-
Constructor Details
-
ChannelGoalProgressType
public ChannelGoalProgressType()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceSubscriptionType<CreatorGoalsCondition,CreatorGoalsCondition.CreatorGoalsConditionBuilder<?, ?>, CreatorGoalsProgressEvent> - Returns:
- the subscription type name.
-
getVersion
- Specified by:
getVersionin interfaceSubscriptionType<CreatorGoalsCondition,CreatorGoalsCondition.CreatorGoalsConditionBuilder<?, ?>, CreatorGoalsProgressEvent> - 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<CreatorGoalsCondition,CreatorGoalsCondition.CreatorGoalsConditionBuilder<?, ?>, CreatorGoalsProgressEvent> - Returns:
- Subscription-specific parameter builder.
-
getEventClass
- Specified by:
getEventClassin interfaceSubscriptionType<CreatorGoalsCondition,CreatorGoalsCondition.CreatorGoalsConditionBuilder<?, ?>, CreatorGoalsProgressEvent> - Returns:
- the associated event class for this subscription type.
-