Class Predictor
java.lang.Object
com.github.twitch4j.eventsub.domain.Predictor
public class Predictor
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Predictor() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.IntegergetChannelPointsUsed()The number of Channel Points used to participate in the Prediction.@Nullable java.lang.IntegergetChannelPointsWon()The number of Channel Points won.java.lang.StringgetUserId()The ID of the user.java.lang.StringgetUserLogin()The login name of the user.java.lang.StringgetUserName()The display name of the user.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Predictor
public Predictor()
-
-
Method Details
-
getUserId
public java.lang.String getUserId()The ID of the user. -
getUserLogin
public java.lang.String getUserLogin()The login name of the user. -
getUserName
public java.lang.String getUserName()The display name of the user. -
getChannelPointsWon
@Nullable public @Nullable java.lang.Integer getChannelPointsWon()The number of Channel Points won.This value is always null in the event payload for Prediction progress and Prediction lock. This value is 0 if the outcome did not win or if the Prediction was canceled and Channel Points were refunded.
-
getChannelPointsUsed
public java.lang.Integer getChannelPointsUsed()The number of Channel Points used to participate in the Prediction. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-