public abstract class Command<T extends Command.Response> extends CommandBase<T>
Modifier and Type | Class and Description |
---|---|
static class |
Command.Response |
static class |
Command.Type |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
commandId |
org.json.JSONObject |
data
Contains the JSON data sent via Remote Control (PayloadCommand) feature on the Dashboard
|
Command<?> |
parentCommand |
java.lang.String |
requestedTag
Tag that triggered delivery of this command.
|
java.util.Set<java.lang.String> |
tags
Lists all the Tags currently set on the feature's (see Type) Dashboard Tag Editor.
|
boolean |
test
Set to true when shown by a Dashboard Test.
|
Command.Type |
type |
Modifier and Type | Method and Description |
---|---|
void |
complete(T response)
Marks this command as complete.
|
boolean |
isComplete()
Returns the current state of a Command and if it is marked complete or not.
|
static Command<?> |
valueOf(android.content.Context context,
CommandParameters commandParameters) |
equals, hashCode
public final Command.Type type
public final Command<?> parentCommand
public final java.lang.String commandId
public final boolean test
public final java.util.Set<java.lang.String> tags
public final java.lang.String requestedTag
public final org.json.JSONObject data
public void complete(T response)
response
- For AlertCommand, the button the user clicked. See Command classes for more.AlertCommand.Button
,
SDK Help Topic: Command Handlerspublic boolean isComplete()
public static Command<?> valueOf(android.content.Context context, CommandParameters commandParameters) throws org.json.JSONException
org.json.JSONException