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 boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Integer getChannelPointsUsed()
    The number of Channel Points used to participate in the Prediction.
    @Nullable java.lang.Integer getChannelPointsWon()
    The number of Channel Points won.
    java.lang.String getUserId()
    The ID of the user.
    java.lang.String getUserLogin()
    The login name of the user.
    java.lang.String getUserName()
    The display name of the user.
    int hashCode()  
    java.lang.String toString()  

    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:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object