Enum Class DraftStatus

java.lang.Object
java.lang.Enum<DraftStatus>
com.hiddenswitch.spellsource.draft.DraftStatus
All Implemented Interfaces:
Serializable, Comparable<DraftStatus>, Constable

public enum DraftStatus extends Enum<DraftStatus>
Indicates different states of a draft.
See Also:
  • Enum Constant Details

    • IN_PROGRESS

      public static final DraftStatus IN_PROGRESS
      The draft is currently accepting choices for cards.
    • SELECT_HERO

      public static final DraftStatus SELECT_HERO
      The draft expects the user to select a champion.
    • NOT_STARTED

      public static final DraftStatus NOT_STARTED
      The draft has not yet started (default state).
    • COMPLETE

      public static final DraftStatus 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 using draftContext.getPublicState().getDeckId().

    • RETIRED

      public static final DraftStatus RETIRED
      The draft has been retired (ended) by the user.
  • Method Details

    • values

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