Enum Class CodeStatus.Status

java.lang.Object
java.lang.Enum<CodeStatus.Status>
com.github.twitch4j.helix.domain.CodeStatus.Status
All Implemented Interfaces:
Serializable, Comparable<CodeStatus.Status>, Constable
Enclosing class:
CodeStatus

public static enum CodeStatus.Status extends Enum<CodeStatus.Status>
  • Enum Constant Details

    • SUCCESSFULLY_REDEEMED

      public static final CodeStatus.Status SUCCESSFULLY_REDEEMED
      Request successfully redeemed this code to the authenticated user’s account.
    • ALREADY_CLAIMED

      public static final CodeStatus.Status ALREADY_CLAIMED
      Code has already been claimed by a Twitch user.
    • EXPIRED

      public static final CodeStatus.Status EXPIRED
      Code has expired and can no longer be claimed.
    • USER_NOT_ELIGIBLE

      public static final CodeStatus.Status USER_NOT_ELIGIBLE
      User is not eligible to redeem this code.
    • NOT_FOUND

      public static final CodeStatus.Status NOT_FOUND
      Code is not valid and/or does not exist in our database.
    • INACTIVE

      public static final CodeStatus.Status INACTIVE
      Code is not currently active.
    • UNUSED

      public static final CodeStatus.Status UNUSED
      Code has not been claimed.
    • INCORRECT_FORMAT

      public static final CodeStatus.Status INCORRECT_FORMAT
      Code was not properly formatted.
    • INTERNAL_ERROR

      public static final CodeStatus.Status INTERNAL_ERROR
      Indicates some internal and/or unknown failure handling this code.
  • Method Details

    • values

      public static CodeStatus.Status[] 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 CodeStatus.Status 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