From 73a49ddd0516e5c9a4b697c593d62c74e420403b Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 24 十月 2024 12:27:31 +0800
Subject: [PATCH] 2024年10月24日12:27:28

---
 HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/template/bean/TemplateBean.java |  314 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 314 insertions(+), 0 deletions(-)

diff --git a/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/template/bean/TemplateBean.java b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/template/bean/TemplateBean.java
new file mode 100644
index 0000000..064cb3d
--- /dev/null
+++ b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/template/bean/TemplateBean.java
@@ -0,0 +1,314 @@
+
+package com.hdl.linkpm.sdk.template.bean;
+/*
+ *create by wxr
+ *date 2022/1/23
+ */
+
+import com.hdl.linkpm.sdk.template.GsonUtils;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.UUID;
+
+public class TemplateBean implements Serializable,Cloneable {
+
+    @Override
+    public TemplateBean clone() throws CloneNotSupportedException {
+        try {
+            TemplateBean tt = GsonUtils.copy(this, TemplateBean.class);
+            if (tt != null) {
+                return tt;
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+            return (TemplateBean) super.clone();
+        }
+        return (TemplateBean) super.clone();
+    }
+
+
+    public String getDebugFlag() {
+        return debugFlag;
+    }
+
+    public void setDebugFlag(String debugFlag) {
+        this.debugFlag = debugFlag;
+    }
+
+    private String debugFlag ;
+
+    private String templateExtendsId;//	妯℃澘id	string
+    private String templateName;//	妯℃澘鍚嶇О	string
+    private String projectType;//	椤圭洰绫诲瀷	string
+    private String houseLayoutId;//	鎴峰瀷id	string
+    private String houseLayoutName;//	鎴峰瀷鍚嶇О	string
+    private String templateSourcePlatform;//	鏉ユ簮	string
+    private String templateSourceDesc;//	搴旂敤杞欢	string
+    private String modifyTime;//	鏇存柊鏃堕棿	long
+
+
+//    /**
+//     * 宸茬粡鍖归厤瀹為檯璁惧杩囩殑妯℃澘
+//     */
+//    List<TemplateDeviceBean> alreadyMatchedTemplateList = new ArrayList<>();
+//
+//    public List<TemplateDeviceBean> getAlreadyMatchedTemplateList() {
+//        return alreadyMatchedTemplateList;
+//    }
+//
+//    public void setAlreadyMatchedTemplateList(List<TemplateDeviceBean> alreadyMatchedTemplateList) {
+//        this.alreadyMatchedTemplateList = alreadyMatchedTemplateList;
+//    }
+    /**
+     * 鐢ㄦ潵璁板綍鐪熷疄璁惧涓媠id瀵瑰簲妯℃澘鍔熻兘鐨剆id
+     */
+    private HashMap<String,String> sidMap = new HashMap<>();
+
+    public HashMap<String, String> getSidMap() {
+        return sidMap;
+    }
+
+    public void setSidMap(HashMap<String, String> sidMap) {
+        this.sidMap = sidMap;
+    }
+
+//    /**
+//     * 宸茬粡閰嶇疆鐨勮澶囩殑mac鍒楄〃  鏂扮殑鏂瑰紡涓嶉渶瑕佸湪杩欓噷璁板綍锛� 鍦ㄥ叾浠栧湴鏂硅褰� 2022骞�5鏈�22鏃� 22:40:33
+//     */
+//    private List<String> matchMacList = new ArrayList<>();
+//
+//    public List<String> getMatchMacList() {
+//        if (matchMacList == null) {
+//            return new ArrayList<>();
+//        }
+//        return matchMacList;
+//    }
+
+    /**
+     * 淇濆瓨鏈湴鏃朵娇鐢ㄧ殑ID
+     */
+    private String localId;
+    public String getLocalId() {
+        if(localId == null || localId.equals("")){
+            localId = UUID.randomUUID().toString().replace("-","");
+        }
+        return localId;
+    }
+
+    public void setLocalId(String localId) {
+        this.localId = localId;
+    }
+
+
+    public String getTemplateExtendsId() {
+        return templateExtendsId == null ? "" : templateExtendsId;
+    }
+    public void setTemplateExtendsId(String templateExtendsId) {
+        this.templateExtendsId = templateExtendsId;
+    }
+
+    public String getTemplateName() {
+        return templateName == null ? "" : templateName;
+    }
+
+    public void setTemplateName(String templateName) {
+        this.templateName = templateName;
+    }
+
+    public String getProjectType() {
+        return projectType == null ? "" : projectType;
+    }
+
+    public void setProjectType(String projectType) {
+        this.projectType = projectType;
+    }
+
+    public String getHouseLayoutId() {
+        return houseLayoutId == null ? "" : houseLayoutId;
+    }
+
+    public void setHouseLayoutId(String houseLayoutId) {
+        this.houseLayoutId = houseLayoutId;
+    }
+
+    public String getHouseLayoutName() {
+        return houseLayoutName == null ? "" : houseLayoutName;
+    }
+
+    public void setHouseLayoutName(String houseLayoutName) {
+        this.houseLayoutName = houseLayoutName;
+    }
+
+    public String getTemplateSourcePlatform() {
+        return templateSourcePlatform == null ? "" : templateSourcePlatform;
+    }
+
+    public void setTemplateSourcePlatform(String templateSourcePlatform) {
+        this.templateSourcePlatform = templateSourcePlatform;
+    }
+
+    public String getTemplateSourceDesc() {
+        return templateSourceDesc == null ? "" : templateSourceDesc;
+    }
+
+    public void setTemplateSourceDesc(String templateSourceDesc) {
+        this.templateSourceDesc = templateSourceDesc;
+    }
+
+    public String getModifyTime() {
+        return modifyTime == null ? "" : modifyTime;
+    }
+
+    public void setModifyTime(String modifyTime) {
+        this.modifyTime = modifyTime;
+    }
+
+    private boolean inLocal = false;
+    private boolean inCloud = false;
+
+    public boolean isInLocal() {
+        return inLocal;
+    }
+
+    public void setInLocal(boolean inLocal) {
+        this.inLocal = inLocal;
+    }
+
+    public boolean isInCloud() {
+        return inCloud;
+    }
+
+    public void setInCloud(boolean inCloud) {
+        this.inCloud = inCloud;
+    }
+
+    //缃戝叧娑堟伅
+    private List<TemplateGatewayBean> gatewayList = new ArrayList<>();
+    //鎴块棿淇℃伅
+    private List<TemplateRoomPackBean.TemplateRoomInfoBean> spatilaInfo = new ArrayList<>();
+    //璁惧淇℃伅
+    private List<TemplateDeviceBean> deviceList = new ArrayList<>();
+    //鍔熻兘淇℃伅
+    private List<TemplateFunctionBean> functionList = new ArrayList<>();
+    //鍦烘櫙淇℃伅
+    private List<TemplateSceneBean> sceneList = new ArrayList<>();
+    //瀹夐槻淇℃伅
+    private List<TemplateSecurityBean> securityList = new ArrayList<>();
+
+    //鑷姩鍖栦俊鎭�
+    private List<TemplateLogicBean> logicList = new ArrayList<>();
+
+
+    public List<TemplateGatewayBean> getGatewayList() {
+        if (gatewayList == null) {
+            return new ArrayList<>();
+        }
+        return gatewayList;
+    }
+
+    public void setGatewayList(List<TemplateGatewayBean> gatewayList) {
+        this.gatewayList = gatewayList;
+    }
+
+    public List<TemplateRoomPackBean.TemplateRoomInfoBean> getSpatilaInfo() {
+        if (spatilaInfo == null) {
+            return new ArrayList<>();
+        }
+        return spatilaInfo;
+    }
+
+    public List<TemplateRoomPackBean.TemplateRoomInfoBean> getRoomList() {
+        List<TemplateRoomPackBean.TemplateRoomInfoBean> roomInfoBeans = new ArrayList<>();
+        for (TemplateRoomPackBean.TemplateRoomInfoBean bean : getSpatilaInfo()) {
+//            if (bean.getRoomType().equals("ROOM"))
+            {
+                roomInfoBeans.add((bean));
+            }
+        }
+        return roomInfoBeans;
+    }
+
+    public List<TemplateRoomPackBean.TemplateRoomInfoBean> getFloorList() {
+        List<TemplateRoomPackBean.TemplateRoomInfoBean> roomInfoBeans = new ArrayList<>();
+        for (TemplateRoomPackBean.TemplateRoomInfoBean bean : getSpatilaInfo()) {
+            if (bean.getRoomType().equals("FLOOR"))
+            {
+                roomInfoBeans.add((bean));
+            }
+        }
+        return roomInfoBeans;
+    }
+
+    public void setSpatilaInfo(List<TemplateRoomPackBean.TemplateRoomInfoBean> spatilaInfo) {
+        this.spatilaInfo = spatilaInfo;
+    }
+
+    /**
+     * 妯℃澘璁惧鍒楄〃
+     * @return 妯℃澘璁惧鍒楄〃
+     */
+    public List<TemplateDeviceBean> getDeviceList() {
+        if (deviceList == null) {
+            return new ArrayList<>();
+        }
+        return deviceList;
+    }
+
+    public void setDeviceList(List<TemplateDeviceBean> deviceList) {
+        this.deviceList = deviceList;
+    }
+
+    public List<TemplateFunctionBean> getFunctionList() {
+        if (functionList == null) {
+            return new ArrayList<>();
+        }
+        return functionList;
+    }
+
+    public void setFunctionList(List<TemplateFunctionBean> functionList) {
+        this.functionList = functionList;
+    }
+
+    public List<TemplateSceneBean> getSceneList() {
+        if (sceneList == null) {
+            return new ArrayList<>();
+        }
+        return sceneList;
+    }
+
+    public void setSceneList(List<TemplateSceneBean> sceneList) {
+        this.sceneList = sceneList;
+    }
+
+    public List<TemplateLogicBean> getLogicList() {
+        if (logicList == null) {
+            return new ArrayList<>();
+        }
+        return logicList;
+    }
+
+    public void setLogicList(List<TemplateLogicBean> logicList) {
+        this.logicList = logicList;
+    }
+
+
+    public List<TemplateSecurityBean> getSecurityList() {
+        if (securityList == null) {
+            return new ArrayList<>();
+        }
+        return securityList;
+    }
+
+    public void setSecurityList(List<TemplateSecurityBean> securityList) {
+        this.securityList = securityList;
+    }
+
+
+
+
+
+
+}

--
Gitblit v1.8.0