public class Trigger
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Trigger> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
Trigger(android.os.Parcel in) |
|
Trigger(Predicate predicate,
Command command) |
|
Trigger(Predicate predicate,
ServerCode serverCode) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
disabled()
Indicate whether the Trigger is disabled.
|
Command |
getCommand()
Get Command bounds to the Trigger.
|
java.lang.String |
getDescription()
Get description.
|
java.lang.String |
getDisabledReason()
Get the reason of the Trigger has been disabled.
|
org.json.JSONObject |
getMetadata()
Get meta data
|
Predicate |
getPredicate()
Get Predicate of the Trigger.
|
ServerCode |
getServerCode()
Get Server Code bounds to the Trigger.
|
TypedID |
getTargetID()
Get Target ID of the Trigger.
|
java.lang.String |
getTitle()
Get title.
|
java.lang.String |
getTriggerID()
Get ID of the Trigger.
|
TriggersWhat |
getTriggersWhat()
Get enum indicates whether the Command or Server Code is triggered.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Trigger> CREATOR
public Trigger(Predicate predicate, ServerCode serverCode)
protected Trigger(android.os.Parcel in)
public java.lang.String getTriggerID()
public TypedID getTargetID()
public boolean disabled()
public Predicate getPredicate()
public Command getCommand()
public ServerCode getServerCode()
public TriggersWhat getTriggersWhat()
public java.lang.String getDisabledReason()
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)