Class PredictionEnd
java.lang.Object
com.gmt2001.twitch.eventsub.EventSubSubscriptionType
com.gmt2001.twitch.eventsub.subscriptions.channel.prediction.PredictionEnd
- All Implemented Interfaces:
Flow.Subscriber<EventSubInternalEvent>
A Prediction ended on a specified channel.
- Author:
- gmt2001
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The status of the Channel Points Prediction. -
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 notificationPredictionEnd
(String broadcaster_user_id) Constructor -
Method Summary
Modifier and TypeMethodDescriptionThe broadcaster's user ID.The broadcaster's user login.The broadcaster's user display name.endedAt()
The time the Channel Points Prediction ended.The time the Channel Points Prediction ended as a string.id()
Channel Points Prediction ID.protected 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
outcomes()
A list of potential outcomes for the Channel Points Prediction.protected EventSubSubscription
Compiles the parameters of this object into anEventSubSubscription
that can be createdThe time the Channel Points Prediction started.The time the Channel Points Prediction started as a string.status()
The status of the Channel Points Prediction.title()
Title for the Channel Points Prediction.protected void
Validates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()
ID of the winning outcome.Methods inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
create, delete, deleteAll, findMatchingSubscriptionId, findMatchingSubscriptionIds, getExistingSubscription, isAlreadySubscribed, messageId, messageTimestamp, onComplete, onError, onEventSubInternalEvent, onEventSubInternalRevocationEvent, onEventSubInternalVerificationEvent, onNext, onSubscribe, proposeSubscriptionInternal, proposeTransport, subscribe, subscription
-
Field Details
-
TYPE
- See Also:
-
VERSION
- See Also:
-
-
Constructor Details
-
PredictionEnd
public PredictionEnd()Only used by EventSub for handler registration -
PredictionEnd
Used byonEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)
to construct an object from an incoming notification- Parameters:
e
- The event
-
PredictionEnd
Constructor- Parameters:
broadcaster_user_id
- The user id of the broadcaster
-
-
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:
-
validateParameters
Description copied from class:EventSubSubscriptionType
Validates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()
- Specified by:
validateParameters
in classEventSubSubscriptionType
- Throws:
IllegalArgumentException
- One of the parameters is not acceptable
-
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:
-
broadcasterUserId
The broadcaster's user ID.- Returns:
-
broadcasterUserLogin
The broadcaster's user login.- Returns:
-
broadcasterUserName
The broadcaster's user display name.- Returns:
-
id
Channel Points Prediction ID.- Returns:
-
title
Title for the Channel Points Prediction.- Returns:
-
startedAtString
The time the Channel Points Prediction started as a string.- Returns:
-
endedAtString
The time the Channel Points Prediction ended as a string.- Returns:
-
startedAt
The time the Channel Points Prediction started.- Returns:
-
endedAt
The time the Channel Points Prediction ended.- Returns:
-
winningOutcomeId
ID of the winning outcome.- Returns:
-
status
The status of the Channel Points Prediction.- Returns:
-
outcomes
A list of potential outcomes for the Channel Points Prediction.- Returns:
-