Class ChannelPredictionEndEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.ChannelPredictionEvent
com.github.twitch4j.eventsub.events.ChannelPredictionEndEvent
public class ChannelPredictionEndEvent extends ChannelPredictionEvent
-
Constructor Summary
Constructors Constructor Description ChannelPredictionEndEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.time.InstantgetEndedAt()The time the Channel Points Prediction ended.PredictionStatusgetStatus()The status of the Channel Points Prediction.java.util.Optional<PredictionOutcome>getWinningOutcome()java.lang.StringgetWinningOutcomeId()ID of the winning outcome.inthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.eventsub.events.ChannelPredictionEvent
getOutcomes, getPredictionId, getStartedAt, getTitleMethods 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
-
ChannelPredictionEndEvent
public ChannelPredictionEndEvent()
-
-
Method Details
-
getWinningOutcome
- Returns:
- the winning PredictionOutcome, in an optional wrapper
-
getWinningOutcomeId
public java.lang.String getWinningOutcomeId()ID of the winning outcome. -
getStatus
The status of the Channel Points Prediction. Valid values are resolved and canceled. -
getEndedAt
public java.time.Instant getEndedAt()The time the Channel Points Prediction ended. -
toString
public java.lang.String toString()- Overrides:
toStringin classChannelPredictionEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classChannelPredictionEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classChannelPredictionEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classChannelPredictionEvent
-