From ce88de4891b87c3b7b2750575e15d6e48d518852 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期四, 24 十月 2024 10:39:12 +0800
Subject: [PATCH] 增加云端库

---
 HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/logic/LogicInfoBean.java |  203 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 203 insertions(+), 0 deletions(-)

diff --git a/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/logic/LogicInfoBean.java b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/logic/LogicInfoBean.java
new file mode 100644
index 0000000..f03d6e1
--- /dev/null
+++ b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/logic/LogicInfoBean.java
@@ -0,0 +1,203 @@
+package com.hdl.linkpm.sdk.home.bean.logic;
+
+import androidx.annotation.NonNull;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Created by jlchen on 12/10/21.
+ * 鑷姩鍖� 璇︽儏瀵硅薄
+ */
+public class LogicInfoBean implements Serializable {
+
+    private String sid;//鑷姩鍖杋d
+    private String gatewayId;//缃戝叧ID
+    private String name;//鑷姩鍖栧悕瀛�
+    private List<String> conditionLabel = new ArrayList<>();//瑙﹀彂鏉′欢鏍囩  1:鏃堕棿鐐规潯浠� 2:鏃堕棿娈�+寰幆鏂瑰紡 3:璁惧鐘舵��
+    private String tag;//鈥� tag	鏍囩
+    private String push_customer_message;//娑堟伅鎺ㄩ�佸唴瀹�
+    private String relation;//鍏崇郴 and/or
+    private String enable;//true:鍚敤(榛樿) false:绂佺敤
+    private CycleBean cycle;//寰幆鏃堕棿
+    private List<InputBean> input = new ArrayList<>();//瑙﹀彂鏉′欢
+    private List<OutputBean> output = new ArrayList<>();//鎵ц鍔ㄤ綔
+    private String output_delay;//杈撳嚭寤舵椂
+
+    @NonNull
+    public String getSid() {
+        return sid == null ? "" : sid;
+    }
+
+    public void setSid(@NonNull String sid) {
+        this.sid = sid;
+    }
+
+    @NonNull
+    public String getGatewayId() {
+        return gatewayId == null ? "" : gatewayId;
+    }
+
+    public void setGatewayId(@NonNull String gatewayId) {
+        this.gatewayId = gatewayId;
+    }
+
+    @NonNull
+    public String getName() {
+        return name == null ? "" : name;
+    }
+
+    public void setName(@NonNull String name) {
+        this.name = name;
+    }
+
+    @NonNull
+    public List<String> getConditionLabel() {
+        if (conditionLabel == null) {
+            return new ArrayList<>();
+        }
+        return conditionLabel;
+    }
+
+    public void setConditionLabel(@NonNull List<String> conditionLabel) {
+        this.conditionLabel = conditionLabel;
+    }
+
+    @NonNull
+    public String getTag() {
+        return tag == null ? "" : tag;
+    }
+
+    public void setTag(@NonNull String tag) {
+        this.tag = tag;
+    }
+
+    @NonNull
+    public String getPush_customer_message() {
+        return push_customer_message == null ? "" : push_customer_message;
+    }
+
+    public void setPush_customer_message(@NonNull String push_customer_message) {
+        this.push_customer_message = push_customer_message;
+    }
+
+    @NonNull
+    public String getRelation() {
+        return relation == null ? "" : relation;
+    }
+
+    public void setRelation(@NonNull String relation) {
+        this.relation = relation;
+    }
+
+    @NonNull
+    public String getEnable() {
+        return enable == null ? "" : enable;
+    }
+
+    public void setEnable(@NonNull String enable) {
+        this.enable = enable;
+    }
+
+    public CycleBean getCycle() {
+        return cycle;
+    }
+
+    public void setCycle(CycleBean cycle) {
+        this.cycle = cycle;
+    }
+
+    @NonNull
+    public List<InputBean> getInput() {
+        if (input == null) {
+            return new ArrayList<>();
+        }
+        return input;
+    }
+
+    public void setInput(@NonNull List<InputBean> input) {
+        this.input = input;
+    }
+
+    @NonNull
+    public List<OutputBean> getOutput() {
+        if (output == null) {
+            return new ArrayList<>();
+        }
+        return output;
+    }
+
+    public void setOutput(@NonNull List<OutputBean> output) {
+        this.output = output;
+    }
+
+    @NonNull
+    public String getOutput_delay() {
+        return output_delay == null ? "" : output_delay;
+    }
+
+    public void setOutput_delay(@NonNull String output_delay) {
+        this.output_delay = output_delay;
+    }
+
+    /**
+     * 寰幆鏃堕棿
+     */
+    public static class CycleBean implements Serializable{
+        private String type;//鏃堕棿绫诲瀷
+        private List<String> value;//鍊�
+
+        public String getType() {
+            return type;
+        }
+
+        public void setType(String type) {
+            this.type = type;
+        }
+
+        public List<String> getValue() {
+            return value;
+        }
+
+        public void setValue(List<String> value) {
+            this.value = value;
+        }
+    }
+
+    /**
+     * 瑙﹀彂鏉′欢
+     */
+    public static class InputBean implements Serializable{
+        private String sid;//璁惧sid 浠呭湪condition_type:3 璁惧瑙﹀彂蹇呭~
+        private String condition_type;//1:鏃堕棿鐐规潯浠� 2:鏃堕棿娈�+寰幆鏂瑰紡 3:璁惧鐘舵��
+        private List<ConditionBean> condition;//鏉′欢
+
+        public String getSid() {
+            return sid;
+        }
+
+        public void setSid(String sid) {
+            this.sid = sid;
+        }
+
+        public String getCondition_type() {
+            return condition_type;
+        }
+
+        public void setCondition_type(String condition_type) {
+            this.condition_type = condition_type;
+        }
+
+        public List<ConditionBean> getCondition() {
+            return condition;
+        }
+
+        public void setCondition(List<ConditionBean> condition) {
+            this.condition = condition;
+        }
+
+    }
+
+
+}

--
Gitblit v1.8.0