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

public final class PredictionOutcome extends Object
Describes a potential outcome for a Prediction.
Author:
gmt2001
  • Constructor Details

    • PredictionOutcome

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

    • id

      public String id()
      The outcome ID.
      Returns:
    • title

      public String title()
      The outcome title.
      Returns:
    • color

      public PredictionOutcome.Color 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

      public List<TopPredictor> topPredictors()
      A list of up to 10 users who used the most Channel Points on this outcome.
      Returns: