Package com.github.twitch4j.helix.domain
Enum CodeStatus.Status
java.lang.Object
java.lang.Enum<CodeStatus.Status>
com.github.twitch4j.helix.domain.CodeStatus.Status
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CodeStatus.Status>,java.lang.constant.Constable
- Enclosing class:
- CodeStatus
public static enum CodeStatus.Status extends java.lang.Enum<CodeStatus.Status>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_CLAIMEDCode has already been claimed by a Twitch user.EXPIREDCode has expired and can no longer be claimed.INACTIVECode is not currently active.INCORRECT_FORMATCode was not properly formatted.INTERNAL_ERRORIndicates some internal and/or unknown failure handling this code.NOT_FOUNDCode is not valid and/or does not exist in our database.SUCCESSFULLY_REDEEMEDRequest successfully redeemed this code to the authenticated user’s account.UNUSEDCode has not been claimed.USER_NOT_ELIGIBLEUser is not eligible to redeem this code. -
Method Summary
Modifier and Type Method Description static CodeStatus.StatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CodeStatus.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-