Class TopPredictor
java.lang.Object
com.gmt2001.twitch.eventsub.subscriptions.channel.prediction.TopPredictor
Describes a user who participated in a Channel Points Prediction.
- Author:
- gmt2001
-
Constructor Details
-
TopPredictor
Constructor- Parameters:
data
- Input data from the event
-
-
Method Details
-
userId
The ID of the user.- Returns:
-
userLogin
The login of the user.- Returns:
-
userName
The display name of the user.- Returns:
-
channelPointsWon
public int channelPointsWon()The number of Channel Points won. This value is always-1
in the event payload for Prediction progress and Prediction lock. This value is0
if the outcome did not win or if the Prediction was canceled and Channel Points were refunded.- Returns:
-
channelPointsUsed
public int channelPointsUsed()The number of Channel Points used to participate in the Prediction.- Returns:
-