java.lang.Object
com.gmt2001.twitch.eventsub.subscriptions.channel.prediction.TopPredictor

public final class TopPredictor extends Object
Describes a user who participated in a Channel Points Prediction.
Author:
gmt2001
  • Constructor Details

    • TopPredictor

      public TopPredictor(JSONObject data)
      Constructor
      Parameters:
      data - Input data from the event
  • Method Details

    • userId

      public String userId()
      The ID of the user.
      Returns:
    • userLogin

      public String userLogin()
      The login of the user.
      Returns:
    • userName

      public String 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 is 0 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: