Enum Class Event

java.lang.Object
java.lang.Enum<Event>
com.chess.backend.gamemodel.constants.Event
All Implemented Interfaces:
Serializable, Comparable<Event>, Constable

public enum Event extends Enum<Event>
Represents different event types for the firebase database.
  • Enum Constant Details

    • NEW_PLAYER_JOIN

      public static final Event NEW_PLAYER_JOIN
    • GAME_STARTED

      public static final Event GAME_STARTED
    • NEW_MOVE

      public static final Event NEW_MOVE
    • PLAYER_CHANGE

      public static final Event PLAYER_CHANGE
    • CHECKMATED

      public static final Event CHECKMATED
    • DRAW

      public static final Event DRAW
    • PROMOTE

      public static final Event PROMOTE
  • Method Details

    • values

      public static Event[] 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 Event 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
    • getLabel

      public String getLabel()