public static class Network.SaveRule extends Command<Network.CommandId>
Network.sendNetworkManagementCommand(Command, Network.NetworkManagementStatusListener)
to save the rule.Command.State| Modifier and Type | Field and Description |
|---|---|
int |
id
ID of the rule.
|
java.lang.String |
name
Name of the rule.
|
java.util.List<ResourceAction> |
resourceActions
List of
ResourceAction that needs to be saved. |
java.util.List<ResourceCondition> |
resourceConditions
List of
ResourceCondition that needs to be saved. |
java.util.List<Scene> |
sceneActions
List of
Scene that needs to be saved. |
java.util.List<ScheduleCondition> |
scheduleConditions
List of
ScheduleCondition that needs to be saved. |
| Constructor and Description |
|---|
SaveRule()
A constructor for this command.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areConditionDataTypesCorrect()
A function to verify the condition data types.
|
void |
correctConditionsDataTypes()
A function to rectify the condition data types using
ResourceCondition.EditableResourceCondition. |
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toString@SerializedName(value="ruleId") public int id
@SerializedName(value="ruleName") public java.lang.String name
@SerializedName(value="resrcCondnArr") public java.util.List<ResourceCondition> resourceConditions
ResourceCondition that needs to be saved.@SerializedName(value="schedCondnArr") public java.util.List<ScheduleCondition> scheduleConditions
ScheduleCondition that needs to be saved.@SerializedName(value="resrcActionArr") public java.util.List<ResourceAction> resourceActions
ResourceAction that needs to be saved.public boolean areConditionDataTypesCorrect()
public void correctConditionsDataTypes()
ResourceCondition.EditableResourceCondition.