Class PredictionOutcome
java.lang.Object
com.github.twitch4j.eventsub.domain.PredictionOutcome
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPredictionOutcome(String id, String title, PredictionColor color, Integer users, Long channelPoints, @Nullable List<Predictor> topPredictors) Creates a newPredictionOutcomeinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanThe total number of Channel Points used on this outcome.getColor()The color for the outcome.getId()The outcome ID.getTitle()The outcome title.The users who used the most Channel Points on this outcome.getUsers()The number of users who used Channel Points on this outcome.inthashCode()toString()withChannelPoints(Long channelPoints) The total number of Channel Points used on this outcome.withColor(PredictionColor color) The color for the outcome.The outcome ID.The outcome title.withTopPredictors(@Nullable List<Predictor> topPredictors) The users who used the most Channel Points on this outcome.The number of users who used Channel Points on this outcome.
-
Constructor Details
-
PredictionOutcome
public PredictionOutcome() -
PredictionOutcome
public PredictionOutcome(String id, String title, PredictionColor color, Integer users, Long channelPoints, @Nullable @Nullable List<Predictor> topPredictors) Creates a newPredictionOutcomeinstance.- Parameters:
id- The outcome ID.title- The outcome title. Maximum: 25 characters.color- The color for the outcome.users- The number of users who used Channel Points on this outcome.channelPoints- The total number of Channel Points used on this outcome.topPredictors- The users who used the most Channel Points on this outcome.
-
-
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
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
The outcome ID. -
getTitle
The outcome title. Maximum: 25 characters. -
getColor
The color for the outcome. -
getUsers
The number of users who used Channel Points on this outcome. -
getChannelPoints
The total number of Channel Points used on this outcome. -
getTopPredictors
The users who used the most Channel Points on this outcome. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-