Enum Class DraftStatus
- All Implemented Interfaces:
Serializable
,Comparable<DraftStatus>
,Constable
Indicates different states of a draft.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe draft is complete and the user can enter a queue with the deck built using the draft.The draft is currently accepting choices for cards.The draft has not yet started (default state).The draft has been retired (ended) by the user.The draft expects the user to select a champion. -
Method Summary
Modifier and TypeMethodDescriptionstatic DraftStatus
Returns the enum constant of this class with the specified name.static DraftStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN_PROGRESS
The draft is currently accepting choices for cards. -
SELECT_HERO
The draft expects the user to select a champion. -
NOT_STARTED
The draft has not yet started (default state). -
COMPLETE
The draft is complete and the user can enter a queue with the deck built using the draft.Retrieve the deck using
draftContext.getPublicState().createDeck()
or retrieve the deck by its ID usingdraftContext.getPublicState().getDeckId()
. -
RETIRED
The draft has been retired (ended) by the user.
-
-
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
-