Class ChannelPredictionEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.ChannelPredictionEvent
- Direct Known Subclasses:
ChannelPredictionBeginEvent,ChannelPredictionEndEvent,ChannelPredictionLockEvent,ChannelPredictionProgressEvent
public abstract class ChannelPredictionEvent extends EventSubChannelEvent
-
Constructor Summary
Constructors Constructor Description ChannelPredictionEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.List<PredictionOutcome>getOutcomes()The outcomes for the Channel Points Prediction.java.lang.StringgetPredictionId()Channel Points Prediction ID.java.time.InstantgetStartedAt()The time the Channel Points Prediction started.java.lang.StringgetTitle()Title for the Channel Points Prediction.inthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelPredictionEvent
public ChannelPredictionEvent()
-
-
Method Details
-
getPredictionId
public java.lang.String getPredictionId()Channel Points Prediction ID. -
getTitle
public java.lang.String getTitle()Title for the Channel Points Prediction. -
getOutcomes
The outcomes for the Channel Points Prediction. May or may not include top_predictors. -
getStartedAt
public java.time.Instant getStartedAt()The time the Channel Points Prediction started. -
toString
public java.lang.String toString()- Overrides:
toStringin classEventSubChannelEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classEventSubChannelEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classEventSubChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubChannelEvent
-