Package com.iizix.device
Enum Class DeviceParameter.State
- All Implemented Interfaces:
- Serializable,- Comparable<DeviceParameter.State>,- Constable
- Enclosing class:
- DeviceParameter
The states for this DeviceParameter instance.
- Nested Class Summary- Nested classes/interfaces inherited from class java.lang.Enum- Enum.EnumDesc<E extends Enum<E>>
- Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionDecryption failed for the parameter, see the server log for more information.Encryption failed for the parameter, see the server log for more information.Not present on client: request for parameter failed as it was not present on the client.Server is requesting the parameter from the client.Server is setting or removing the parameter from the client.Success: client has replied with the parameter and its value, or the value has been removed if the- DeviceParameter.getValue()returns- null.Unavailable: not possible to retrieve any device parameters.
- Method SummaryModifier and TypeMethodDescription- static DeviceParameter.StateReturns the enum constant of this class with the specified name.- static DeviceParameter.State[]- values()Returns an array containing the constants of this enum class, in the order they are declared.
- Enum Constant Details- REQUESTServer is requesting the parameter from the client.
- SETServer is setting or removing the parameter from the client. If the value is null, the parameter is removed, otherwise it is set.
- SUCCESSSuccess: client has replied with the parameter and its value, or the value has been removed if the- DeviceParameter.getValue()returns- null.
- NOT_FOUNDNot present on client: request for parameter failed as it was not present on the client.
- ENCRYPT_ERROREncryption failed for the parameter, see the server log for more information.
- DECRYPT_ERRORDecryption 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.
- UNAVAILABLEUnavailable: not possible to retrieve any device parameters.
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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