New file |
| | |
| | | package com.hdl.linkpm.sdk.template.bean; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | |
| | | public class TemplateLogicBean implements Serializable { |
| | | //-- sid 自动化设备端 true string |
| | | private String sid; |
| | | //-- name 自动化名称 true string |
| | | private String name; |
| | | //-- image 场景图片 false string |
| | | private String image; |
| | | //-- tag 场景类型 false string |
| | | private String tag; |
| | | //-- conditionLable 自动化标签 false array<string> |
| | | private ArrayList<String> conditionLable = new ArrayList<>(); |
| | | //-- push_customer_message 自动化执行推送信息 false string |
| | | private String push_customer_message; |
| | | //-- relation 触发条件关系 false array<long> |
| | | private String relation ; |
| | | //-- enable 启用禁用 true string |
| | | private boolean enable; |
| | | //-- cycle 执行周期 false string |
| | | private TemplateLogicCycleBean cycle; |
| | | //---- type 键 false string |
| | | //---- value 值 false array<string> |
| | | |
| | | //-- input 自动化触发条件 false array<object> |
| | | private List<TemplateLogicInputBean> input = new ArrayList<>(); |
| | | //---- sid sid false string |
| | | //---- condition_type 条件类型 false string |
| | | //---- condition 条件 false array<object> |
| | | //------ key 条件key false string |
| | | //------ comparator 比较 false string |
| | | //------ data_type 数据类型 false string |
| | | //------ value 条件值 false string |
| | | |
| | | //-- output 自动化执行动作 false string |
| | | private ArrayList<TemplateLogicOutputBean> output = new ArrayList<>(); |
| | | //---- sid sid false string |
| | | //---- target_type 目标类型 false string |
| | | //----- status 动作 false array<object> |
| | | //------- key 键 false string |
| | | //------- value 值 false string |
| | | |
| | | |
| | | public String getSid() { |
| | | return sid == null ? "" : sid; |
| | | } |
| | | |
| | | public void setSid(String sid) { |
| | | this.sid = sid; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name == null ? "" : name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getImage() { |
| | | return image == null ? "" : image; |
| | | } |
| | | |
| | | public void setImage(String image) { |
| | | this.image = image; |
| | | } |
| | | |
| | | public String getTag() { |
| | | return tag == null ? "" : tag; |
| | | } |
| | | |
| | | public void setTag(String tag) { |
| | | this.tag = tag; |
| | | } |
| | | |
| | | public ArrayList<String> getConditionLable() { |
| | | if (conditionLable == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return conditionLable; |
| | | } |
| | | |
| | | public void setConditionLable(ArrayList<String> conditionLable) { |
| | | this.conditionLable = conditionLable; |
| | | } |
| | | |
| | | public String getPush_customer_message() { |
| | | return push_customer_message == null ? "" : push_customer_message; |
| | | } |
| | | |
| | | public void setPush_customer_message(String push_customer_message) { |
| | | this.push_customer_message = push_customer_message; |
| | | } |
| | | |
| | | public String getRelation() { |
| | | return relation; |
| | | } |
| | | |
| | | public void setRelation(String relation) { |
| | | this.relation = relation; |
| | | } |
| | | |
| | | public boolean isEnable() { |
| | | return enable; |
| | | } |
| | | |
| | | public void setEnable(boolean enable) { |
| | | this.enable = enable; |
| | | } |
| | | |
| | | public TemplateLogicCycleBean getCycle() { |
| | | return cycle; |
| | | } |
| | | |
| | | public void setCycle(TemplateLogicCycleBean cycle) { |
| | | this.cycle = cycle; |
| | | } |
| | | |
| | | public List<TemplateLogicInputBean> getInput() { |
| | | if (input == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return input; |
| | | } |
| | | |
| | | public void setInput(List<TemplateLogicInputBean> input) { |
| | | this.input = input; |
| | | } |
| | | |
| | | public ArrayList<TemplateLogicOutputBean> getOutput() { |
| | | if (output == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return output; |
| | | } |
| | | |
| | | public void setOutput(ArrayList<TemplateLogicOutputBean> output) { |
| | | this.output = output; |
| | | } |
| | | |
| | | public static class TemplateLogicCycleBean { |
| | | |
| | | //---- type 键 false string |
| | | private String type; |
| | | |
| | | //---- value 值 false array<string> |
| | | private List<String> value = new ArrayList<>(); |
| | | |
| | | public String getType() { |
| | | return type == null ? "" : type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public List<String> getValue() { |
| | | if (value == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(List<String> value) { |
| | | this.value = value; |
| | | } |
| | | } |
| | | |
| | | public static class TemplateLogicInputBean { |
| | | |
| | | //---- sid sid false string |
| | | private String sid; |
| | | |
| | | //---- condition_type 条件类型 false string |
| | | private String condition_type; |
| | | |
| | | //---- condition 条件 false array<object> |
| | | private ArrayList<TemplateLogicInputConditionBean> condition = new ArrayList<>(); |
| | | |
| | | public String getSid() { |
| | | return sid == null ? "0301056295720F16150100080000" : sid; |
| | | } |
| | | |
| | | public void setSid(String sid) { |
| | | this.sid = sid; |
| | | } |
| | | |
| | | public String getCondition_type() { |
| | | return condition_type == null ? "" : condition_type; |
| | | } |
| | | |
| | | public void setCondition_type(String condition_type) { |
| | | this.condition_type = condition_type; |
| | | } |
| | | |
| | | public ArrayList<TemplateLogicInputConditionBean> getCondition() { |
| | | if (condition == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return condition; |
| | | } |
| | | |
| | | public void setCondition(ArrayList<TemplateLogicInputConditionBean> condition) { |
| | | this.condition = condition; |
| | | } |
| | | } |
| | | |
| | | public static class TemplateLogicInputConditionBean { |
| | | //------ key 条件key false string |
| | | private String key; |
| | | |
| | | //------ comparator 比较 false string |
| | | private String comparator; |
| | | |
| | | //------ data_type 数据类型 false string |
| | | private String data_type; |
| | | |
| | | //------ value 条件值 false string |
| | | private String value; |
| | | |
| | | public String getKey() { |
| | | return key == null ? "" : key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getComparator() { |
| | | return comparator == null ? "" : comparator; |
| | | } |
| | | |
| | | public void setComparator(String comparator) { |
| | | this.comparator = comparator; |
| | | } |
| | | |
| | | public String getData_type() { |
| | | return data_type == null ? "" : data_type; |
| | | } |
| | | |
| | | public void setData_type(String data_type) { |
| | | this.data_type = data_type; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value == null ? "" : value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | } |
| | | |
| | | public static class TemplateLogicOutputBean { |
| | | //---- sid sid false string |
| | | private String sid; |
| | | //---- target_type 目标类型 false string |
| | | private String target_type; |
| | | //----- status 动作 false array<object> |
| | | private ArrayList<TemplateLogicOutputStatusBean> status = new ArrayList<>(); |
| | | |
| | | private String name; |
| | | |
| | | private String delay; |
| | | |
| | | |
| | | public String getDelay() { |
| | | return delay == null ? "" : delay; |
| | | } |
| | | |
| | | public void setDelay(@NonNull String delay) { |
| | | this.delay = delay; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name == null ? "" : name; |
| | | } |
| | | |
| | | public void setName(@NonNull String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getSid() { |
| | | return sid == null ? "" : sid; |
| | | } |
| | | |
| | | public void setSid(String sid) { |
| | | this.sid = sid; |
| | | } |
| | | |
| | | public String getTarget_type() { |
| | | return target_type == null ? "" : target_type; |
| | | } |
| | | |
| | | public void setTarget_type(String target_type) { |
| | | this.target_type = target_type; |
| | | } |
| | | |
| | | public ArrayList<TemplateLogicOutputStatusBean> getStatus() { |
| | | if (status == null) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(ArrayList<TemplateLogicOutputStatusBean> status) { |
| | | this.status = status; |
| | | } |
| | | } |
| | | public static class TemplateLogicOutputStatusBean { |
| | | //------- key 键 false string |
| | | private String key; |
| | | //------- value 值 false string |
| | | private String value; |
| | | |
| | | public String getKey() { |
| | | return key == null ? "" : key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value == null ? "" : value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | } |
| | | } |