Enum Class Helix.PredictionStatus

java.lang.Object
java.lang.Enum<Helix.PredictionStatus>
tv.phantombot.twitch.api.Helix.PredictionStatus
All Implemented Interfaces:
Serializable, Comparable<Helix.PredictionStatus>, Constable
Enclosing class:
Helix

public static enum Helix.PredictionStatus extends Enum<Helix.PredictionStatus>
The status to set the prediction to for Helix.endPredictionAsync(String, PredictionStatus, String))
  • Enum Constant Details

    • LOCKED

      public static final Helix.PredictionStatus LOCKED
      The broadcaster is locking the prediction, which means viewers may no longer make predictions.
    • CANCELED

      public static final Helix.PredictionStatus CANCELED
      The broadcaster is canceling the prediction and sending refunds to the participants.
    • RESOLVED

      public static final Helix.PredictionStatus RESOLVED
      The winning outcome is determined and the Channel Points are distributed to the viewers who predicted the correct outcome.
  • Method Details

    • values

      public static Helix.PredictionStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Helix.PredictionStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null