Class PredictionOutcome
java.lang.Object
com.github.twitch4j.eventsub.domain.PredictionOutcome
public class PredictionOutcome
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPredictionOutcome.PredictionOutcomeBuilder -
Constructor Summary
Constructors Constructor Description PredictionOutcome()PredictionOutcome(java.lang.String id, java.lang.String title, PredictionColor color, java.lang.Integer users, java.lang.Long channelPoints, @Nullable java.util.List<Predictor> topPredictors) -
Method Summary
Modifier and Type Method Description static PredictionOutcome.PredictionOutcomeBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetChannelPoints()The total number of Channel Points used on this outcome.PredictionColorgetColor()The color for the outcome.java.lang.StringgetId()The outcome ID.java.lang.StringgetTitle()The outcome title.@Nullable java.util.List<Predictor>getTopPredictors()The users who used the most Channel Points on this outcome.java.lang.IntegergetUsers()The number of users who used Channel Points on this outcome.inthashCode()PredictionOutcome.PredictionOutcomeBuildertoBuilder()java.lang.StringtoString()PredictionOutcomewithChannelPoints(java.lang.Long channelPoints)The total number of Channel Points used on this outcome.PredictionOutcomewithColor(PredictionColor color)The color for the outcome.PredictionOutcomewithId(java.lang.String id)The outcome ID.PredictionOutcomewithTitle(java.lang.String title)The outcome title.PredictionOutcomewithTopPredictors(@Nullable java.util.List<Predictor> topPredictors)The users who used the most Channel Points on this outcome.PredictionOutcomewithUsers(java.lang.Integer users)The number of users who used Channel Points on this outcome.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PredictionOutcome
public PredictionOutcome() -
PredictionOutcome
public PredictionOutcome(java.lang.String id, java.lang.String title, PredictionColor color, java.lang.Integer users, java.lang.Long channelPoints, @Nullable @Nullable java.util.List<Predictor> topPredictors)
-
-
Method Details
-
builder
-
toBuilder
-
withId
The outcome ID.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
The outcome title. Maximum: 25 characters.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withColor
The color for the outcome.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUsers
The number of users who used Channel Points on this outcome.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChannelPoints
The total number of Channel Points used on this outcome.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTopPredictors
public PredictionOutcome withTopPredictors(@Nullable @Nullable java.util.List<Predictor> topPredictors)The users who used the most Channel Points on this outcome.- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getId
public java.lang.String getId()The outcome ID. -
getTitle
public java.lang.String getTitle()The outcome title. Maximum: 25 characters. -
getColor
The color for the outcome. -
getUsers
public java.lang.Integer getUsers()The number of users who used Channel Points on this outcome. -
getChannelPoints
public java.lang.Long getChannelPoints()The total number of Channel Points used on this outcome. -
getTopPredictors
The users who used the most Channel Points on this outcome. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-