Enum Class CommandStatus

java.lang.Object
java.lang.Enum<CommandStatus>
com.dsi.ant.plugins.antplus.pcc.controls.defines.CommandStatus
All Implemented Interfaces:
Serializable, Comparable<CommandStatus>, Constable

public enum CommandStatus extends Enum<CommandStatus>
Defines status codes for use with the updateGenericCommandStatus, updateAudioCommandStatus and updateVideoCommandStatus commands
  • Enum Constant Details

    • PASS

      public static final CommandStatus PASS
      Pass: command received and processed successfully
    • FAIL

      public static final CommandStatus FAIL
      Fail: command received and processed unsuccessfully
    • NOT_SUPPORTED

      public static final CommandStatus NOT_SUPPORTED
      Not supported
    • REJECTED

      public static final CommandStatus REJECTED
      Rejected: command received but rejected, e.g., due to invalid format/unregistered remote
    • PENDING

      public static final CommandStatus PENDING
      Pending: command received and not yet processed
    • UNINITIALIZED

      public static final CommandStatus UNINITIALIZED
      Uninitialized: never received a command
    • UNRECOGNIZED

      public static final CommandStatus UNRECOGNIZED
      The value sent by the plugin service was unrecognized indicating an upgrade of the PCC may be required to handle the value.
  • Method Details

    • values

      public static CommandStatus[] 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 CommandStatus 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
    • getIntValue

      public int getIntValue()
      Convert enum to equivalent int value
      Returns:
      integer value equivalent
    • getValueFromInt

      public static CommandStatus getValueFromInt(int intValue)
      Convert int to equivalent enum value
      Parameters:
      intValue - integer to convert
      Returns:
      enum value equivalent