public class Command
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Command> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
Command(android.os.Parcel in) |
|
Command(java.lang.String schemaName,
int schemaVersion,
TypedID issuerID,
java.util.List<Action> actions) |
|
Command(java.lang.String schemaName,
int schemaVersion,
TypedID targetID,
TypedID issuerID,
java.util.List<Action> actions) |
Modifier and Type | Method and Description |
---|---|
void |
addActionResult(ActionResult ar) |
int |
describeContents() |
ActionResult |
getActionResult(Action action)
Get a action result associated with specified action
|
java.util.List<ActionResult> |
getActionResults()
Get list of action result
|
java.util.List<Action> |
getActions()
Get list of actions
|
java.lang.String |
getCommandID()
Get ID of the command.
|
CommandState |
getCommandState()
Get status of command
|
java.lang.Long |
getCreated()
Get creation time
|
java.lang.String |
getDescription()
Get description.
|
java.lang.String |
getFiredByTriggerID()
Get ID of trigger which fired this command
|
TypedID |
getIssuerID()
Get ID of the issuer user.
|
org.json.JSONObject |
getMetadata()
Get meta data
|
java.lang.Long |
getModified()
Get modification time
|
java.lang.String |
getSchemaName()
Get name of the schema in which command is defined.
|
int |
getSchemaVersion()
Get version of the schema in which command is defined.
|
TypedID |
getTargetID()
Get ID of the target thing.
|
java.lang.String |
getTitle()
Get title.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Command> CREATOR
public Command(java.lang.String schemaName, int schemaVersion, TypedID targetID, TypedID issuerID, java.util.List<Action> actions)
public Command(java.lang.String schemaName, int schemaVersion, TypedID issuerID, java.util.List<Action> actions)
protected Command(android.os.Parcel in)
public void addActionResult(ActionResult ar)
public java.lang.String getCommandID()
public java.lang.String getSchemaName()
public int getSchemaVersion()
public TypedID getTargetID()
public TypedID getIssuerID()
public java.util.List<Action> getActions()
public java.util.List<ActionResult> getActionResults()
public ActionResult getActionResult(Action action)
action
- action to specify action result.public CommandState getCommandState()
public java.lang.String getFiredByTriggerID()
public java.lang.Long getCreated()
public java.lang.Long getModified()
public java.lang.String getTitle()
public java.lang.String getDescription()
public org.json.JSONObject getMetadata()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
Copyright 2015 Kii Corporation. All rights reserved. (Last updated on 2016-10-13 08:55 UTC)