Class PredictionOutcome

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

public class PredictionOutcome
extends java.lang.Object
  • Constructor Details

    • PredictionOutcome

      public PredictionOutcome()
    • PredictionOutcome

      public PredictionOutcome​(java.lang.String id, java.lang.String title, PredictionColor color, java.lang.Integer users, java.lang.Long channelPoints, @Nullable @Nullable java.util.List<Predictor> topPredictors)
  • Method Details

    • builder

    • toBuilder

    • withId

      public PredictionOutcome withId​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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 java.util.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 java.lang.String getId()
      The outcome ID.
    • getTitle

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

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

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

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

      @Nullable public @Nullable java.util.List<Predictor> getTopPredictors()
      The users who used the most Channel Points on this outcome.
    • 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