Enum Class PollStatus

java.lang.Object
java.lang.Enum<PollStatus>
com.github.twitch4j.eventsub.domain.PollStatus
All Implemented Interfaces:
Serializable, Comparable<PollStatus>, Constable

public enum PollStatus extends Enum<PollStatus>
  • Enum Constant Details

    • ACTIVE

      public static final PollStatus ACTIVE
      Poll is currently in progress.
    • COMPLETED

      public static final PollStatus COMPLETED
      Poll has reached its ended_at time.
    • TERMINATED

      public static final PollStatus TERMINATED
      Poll has been manually terminated before its ended_at time, but still visible.
    • ARCHIVED

      public static final PollStatus ARCHIVED
      Poll is no longer visible on the channel.
    • MODERATED

      public static final PollStatus MODERATED
      Poll is no longer visible to any user on Twitch.
    • INVALID

      public static final PollStatus INVALID
      Something went wrong determining the state.
  • Method Details

    • values

      public static PollStatus[] 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 PollStatus 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