Enum Class AuthorizationState

java.lang.Object
java.lang.Enum<AuthorizationState>
dev.digiried.wattpilot.dto.AuthorizationState
All Implemented Interfaces:
Serializable, Comparable<AuthorizationState>, Constable

public enum AuthorizationState extends Enum<AuthorizationState>
Enum for the authorization state configuration.
Author:
Florian Hotze - Initial contribution
  • Enum Constant Details

    • AUTHORIZED

      public static final AuthorizationState AUTHORIZED
      Charging is authorized.
    • WAITING

      public static final AuthorizationState WAITING
      Waiting for charging authorization.
  • Method Details

    • values

      public static AuthorizationState[] 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 AuthorizationState 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
    • toValue

      public int toValue()
      Get the API value of the authorization state.
      Returns:
      the API value
    • fromValue

      public static AuthorizationState fromValue(int value)
      Get the authorization state from the API value.
      Parameters:
      value - the API value
      Returns:
      the authorization state, or null if the API value is unknown