T
- The CommandIdInterface which can uniquely identify the type of the command.public final class CommandResponse<T extends CommandIdInterface>
extends java.lang.Object
Command
with it.Modifier and Type | Class and Description |
---|---|
static class |
CommandResponse.Args<T>
Args found in JSON response.
|
static class |
CommandResponse.Error
Error class contains information about the
CommandResponse.ErrorCode ,
error message and field in response. |
static class |
CommandResponse.ErrorCode
This class covers possible integer error codes as final constant fields,
used to create
Error objects. |
Modifier and Type | Method and Description |
---|---|
CommandResponse.Args<T> |
getArgs()
A function used to generate args from JSON response.
|
Command<T> |
getCommand()
A function to get the command corresponding to the response.
|
CommandResponse.Error |
getError()
A function to get the error occurred while executing this command.
|
Command.State |
getState()
This function is used to get the state of the command.
|
java.lang.String |
toString() |
public Command.State getState()
public CommandResponse.Error getError()
public Command<T> getCommand()
public CommandResponse.Args<T> getArgs()
Command.DeviceTag
,
Command.NetworkTag
and
Command.CapabilityTag
public java.lang.String toString()
toString
in class java.lang.Object