Class PredictionOutcome
java.lang.Object
com.gmt2001.twitch.eventsub.subscriptions.channel.prediction.PredictionOutcome
Describes a potential outcome for a Prediction.
- Author:
- gmt2001
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The total number of Channel Points used on this outcome.color()
The color for the outcome.id()
The outcome ID.title()
The outcome title.A list of up to 10 users who used the most Channel Points on this outcome.int
users()
The number of users who used Channel Points on this outcome.
-
Constructor Details
-
PredictionOutcome
Constructor- Parameters:
data
- Input data from the event
-
-
Method Details
-
id
The outcome ID.- Returns:
-
title
The outcome title.- Returns:
-
color
The color for the outcome.- Returns:
-
users
public int users()The number of users who used Channel Points on this outcome.- Returns:
-
channelPoints
public int channelPoints()The total number of Channel Points used on this outcome.- Returns:
-
topPredictors
A list of up to 10 users who used the most Channel Points on this outcome.- Returns:
-