Class PredictionOutcome.PredictionOutcomeBuilder
java.lang.Object
com.github.twitch4j.eventsub.domain.PredictionOutcome.PredictionOutcomeBuilder
- Enclosing class:
- PredictionOutcome
public static class PredictionOutcome.PredictionOutcomeBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description PredictionOutcomebuild()PredictionOutcome.PredictionOutcomeBuilderchannelPoints(java.lang.Long channelPoints)The total number of Channel Points used on this outcome.PredictionOutcome.PredictionOutcomeBuildercolor(PredictionColor color)The color for the outcome.PredictionOutcome.PredictionOutcomeBuilderid(java.lang.String id)The outcome ID.PredictionOutcome.PredictionOutcomeBuildertitle(java.lang.String title)The outcome title.PredictionOutcome.PredictionOutcomeBuildertopPredictors(@Nullable java.util.List<Predictor> topPredictors)The users who used the most Channel Points on this outcome.java.lang.StringtoString()PredictionOutcome.PredictionOutcomeBuilderusers(java.lang.Integer users)The number of users who used Channel Points on this outcome.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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 java.util.List<Predictor> topPredictors)The users who used the most Channel Points on this outcome.- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-