Enum Class DeviceParameter.State

java.lang.Object
java.lang.Enum<DeviceParameter.State>
com.iizix.device.DeviceParameter.State
All Implemented Interfaces:
Serializable, Comparable<DeviceParameter.State>, Constable
Enclosing class:
DeviceParameter

public static enum DeviceParameter.State extends Enum<DeviceParameter.State>
The states for this DeviceParameter instance.
  • Enum Constant Details

    • REQUEST

      public static final DeviceParameter.State REQUEST
      Server is requesting the parameter from the client.
    • SET

      public static final DeviceParameter.State SET
      Server is setting or removing the parameter from the client. If the value is null, the parameter is removed, otherwise it is set.
    • SUCCESS

      public static final DeviceParameter.State SUCCESS
      Success: client has replied with the parameter and its value, or the value has been removed if the DeviceParameter.getValue() returns null.
    • NOT_FOUND

      public static final DeviceParameter.State NOT_FOUND
      Not present on client: request for parameter failed as it was not present on the client.
    • ENCRYPT_ERROR

      public static final DeviceParameter.State ENCRYPT_ERROR
      Encryption failed for the parameter, see the server log for more information.
    • DECRYPT_ERROR

      public static final DeviceParameter.State DECRYPT_ERROR
      Decryption failed for the parameter, see the server log for more information. This could be due to tampering with the data on the client side, or that the server key could not be found.
    • UNAVAILABLE

      public static final DeviceParameter.State UNAVAILABLE
      Unavailable: not possible to retrieve any device parameters.
  • Method Details

    • values

      public static DeviceParameter.State[] 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 DeviceParameter.State 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