Package com.github.twitch4j.helix.domain
Enum Class CodeStatus.Status
- All Implemented Interfaces:
Serializable
,Comparable<CodeStatus.Status>
,Constable
- Enclosing class:
- CodeStatus
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCode has already been claimed by a Twitch user.Code has expired and can no longer be claimed.Code is not currently active.Code was not properly formatted.Indicates some internal and/or unknown failure handling this code.Code is not valid and/or does not exist in our database.Request successfully redeemed this code to the authenticated user’s account.Code has not been claimed.User is not eligible to redeem this code. -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeStatus.Status
Returns the enum constant of this class with the specified name.static CodeStatus.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESSFULLY_REDEEMED
Request successfully redeemed this code to the authenticated user’s account. -
ALREADY_CLAIMED
Code has already been claimed by a Twitch user. -
EXPIRED
Code has expired and can no longer be claimed. -
USER_NOT_ELIGIBLE
User is not eligible to redeem this code. -
NOT_FOUND
Code is not valid and/or does not exist in our database. -
INACTIVE
Code is not currently active. -
UNUSED
Code has not been claimed. -
INCORRECT_FORMAT
Code was not properly formatted. -
INTERNAL_ERROR
Indicates some internal and/or unknown failure handling this code.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-