Class PredictionOutcome.PredictionOutcomeBuilder
java.lang.Object
com.github.twitch4j.eventsub.domain.PredictionOutcome.PredictionOutcomeBuilder
- Enclosing class:
- PredictionOutcome
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
channelPoints
(Long channelPoints) The total number of Channel Points used on this outcome.color
(PredictionColor color) The color for the outcome.The outcome ID.The outcome title.topPredictors
(@Nullable List<Predictor> topPredictors) The users who used the most Channel Points on this outcome.toString()
The number of users who used Channel Points on this outcome.
-
Method Details
-
id
The outcome ID.- Returns:
this
.
-
title
The outcome title. Maximum: 25 characters.- Returns:
this
.
-
color
The color for the outcome.- Returns:
this
.
-
users
The number of users who used Channel Points on this outcome.- Returns:
this
.
-
channelPoints
The total number of Channel Points used on this outcome.- Returns:
this
.
-
topPredictors
public PredictionOutcome.PredictionOutcomeBuilder topPredictors(@Nullable @Nullable List<Predictor> topPredictors) The users who used the most Channel Points on this outcome.- Returns:
this
.
-
build
-
toString
-