Class PredictionOutcome

java.lang.Object
com.github.twitch4j.eventsub.domain.PredictionOutcome

public class PredictionOutcome extends Object
  • Constructor Details

    • PredictionOutcome

      public PredictionOutcome()
    • PredictionOutcome

      public PredictionOutcome(String id, String title, PredictionColor color, Integer users, Long channelPoints, @Nullable @Nullable List<Predictor> topPredictors)
      Creates a new PredictionOutcome instance.
      Parameters:
      id - The outcome ID.
      title - The outcome title. Maximum: 25 characters.
      color - The color for the outcome.
      users - The number of users who used Channel Points on this outcome.
      channelPoints - The total number of Channel Points used on this outcome.
      topPredictors - The users who used the most Channel Points on this outcome.
  • Method Details

    • builder

    • toBuilder

    • withId

      public PredictionOutcome withId(String id)
      The outcome ID.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTitle

      public PredictionOutcome withTitle(String title)
      The outcome title. Maximum: 25 characters.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withColor

      public PredictionOutcome withColor(PredictionColor color)
      The color for the outcome.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUsers

      public PredictionOutcome withUsers(Integer users)
      The number of users who used Channel Points on this outcome.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withChannelPoints

      public PredictionOutcome withChannelPoints(Long channelPoints)
      The total number of Channel Points used on this outcome.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTopPredictors

      public PredictionOutcome withTopPredictors(@Nullable @Nullable List<Predictor> topPredictors)
      The users who used the most Channel Points on this outcome.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getId

      public String getId()
      The outcome ID.
    • getTitle

      public String getTitle()
      The outcome title. Maximum: 25 characters.
    • getColor

      public PredictionColor getColor()
      The color for the outcome.
    • getUsers

      public Integer getUsers()
      The number of users who used Channel Points on this outcome.
    • getChannelPoints

      public Long getChannelPoints()
      The total number of Channel Points used on this outcome.
    • getTopPredictors

      @Nullable public @Nullable List<Predictor> getTopPredictors()
      The users who used the most Channel Points on this outcome.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object