From 14de918a79943e4961b09fa01ed320c6cad41f2e Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 28 六月 2023 17:14:51 +0800
Subject: [PATCH] Revert "Revert "Merge branch 'hxb' into wjc""

---
 HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java |  349 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 349 insertions(+), 0 deletions(-)

diff --git a/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java b/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java
new file mode 100644
index 0000000..df81b6b
--- /dev/null
+++ b/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java
@@ -0,0 +1,349 @@
+package com.hdl.sdk.link.core.bean.gateway;
+
+import android.text.TextUtils;
+
+import androidx.annotation.NonNull;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Created by hxb on 2021/12/15.
+ * 缃戝叧瀵硅薄
+ */
+public class GatewayBean implements Serializable {
+
+
+
+    /**
+     * true-鍦ㄧ嚎
+     * false-绂荤嚎
+     */
+    private boolean online=true;
+    /**
+     * 缃戝叧鍨嬪彿
+     */
+    private String device_model;
+    /**
+     * 缃戝叧澶囨敞
+     */
+    private String device_name;
+    /**
+     * 缃戝叧Mac
+     */
+    private String device_mac;
+    /**
+     * 缃戝叧Id
+     */
+    private String gatewayId;
+    /**
+     * 缃戝叧绫诲瀷
+     */
+    private String gatewayType;
+    private String gateway_type;
+    /**
+     * 缃戝叧oid
+     */
+    private String oid;
+    /**
+     * IP鍦板潃
+     */
+    private String ip_address;
+    /**
+     * 杩炴帴鐨勭綉鍏崇被鍨� LAN WIFI
+     */
+    private String access_mode;
+    /**
+     * 鏄惁涓荤綉鍏� true false
+     */
+    private String master;
+    /**
+     * 鏄惁鍔犲瘑
+     */
+    private boolean isLocalEncrypt;
+    /**
+     * 鏄惁鏈湴缃戝叧
+     */
+    private boolean isLocalGateWay;
+    /**
+     * 浣忓畢Id
+     */
+    private String homeId;
+
+    /**
+     * 浣跨敤mqtt鐨勬椂鍊欓渶瑕佽В瀵�
+     */
+    private String aesKey;
+    private String deviceId;
+
+    /**
+     * 姣背娉id
+     */
+    private String sid;
+
+
+    /**
+     * 璁惧鏉ユ簮(鑷畾涔�:0=琛ㄧず缃戝叧;1=琛ㄧず骞冲彴)
+     */
+    private String src;
+
+    public String getSrc() {
+        return src==null?"":this.src;
+    }
+
+    public void setSrc(String src) {
+        this.src = src;
+    }
+
+    public String getAesKey() {
+        return aesKey == null ? "" : aesKey;
+    }
+
+    public void setAesKey(@NonNull String aesKey) {
+        this.aesKey = aesKey;
+    }
+
+    public String getDeviceId() {
+        return deviceId == null ? "" : deviceId;
+    }
+
+    public void setDeviceId(@NonNull String deviceId) {
+        this.deviceId = deviceId;
+    }
+
+    public boolean getOnline() {
+        return online;
+    }
+
+    public void setOnline(boolean online) {
+        this.online = online;
+    }
+    /**
+     * 缃戝叧鍨嬪彿
+     */
+    public String getDevice_model() {
+        return device_model == null ? "" : device_model;
+    }
+    /**
+     * 缃戝叧鍨嬪彿
+     */
+    public void setDevice_model(String device_model) {
+        this.device_model = device_model;
+    }
+    /**
+     * 缃戝叧澶囨敞
+     */
+    public String getDevice_name() {
+        if(TextUtils.isEmpty(device_name)){
+            return getDevice_model();
+        }else {
+
+        }
+        return device_name;
+    }
+
+    /**
+     * 妯℃澘鍖归厤鏍囪 wxr 鑷畾涔� 2022-02-23 16:09:44
+     */
+    private boolean templateSettingFlag = false;
+
+    public boolean isTemplateSettingFlag() {
+        return templateSettingFlag;
+    }
+
+    public void setTemplateSettingFlag(boolean templateSettingFlag) {
+        this.templateSettingFlag = templateSettingFlag;
+    }
+    private String templateAddr ;
+
+    public String getTemplateAddr() {
+        return templateAddr == null ? "" : templateAddr;
+    }
+
+    public void setTemplateAddr(String templateAddr) {
+        this.templateAddr = templateAddr;
+    }
+
+
+
+    /**
+     * 缃戝叧澶囨敞
+     */
+    public void setDevice_name(String device_name) {
+        this.device_name = device_name;
+    }
+
+    /**
+     * 缃戝叧Mac
+     * @return
+     */
+    @NonNull
+    public String getDevice_mac() {
+        return TextUtils.isEmpty(device_mac) ? "" : device_mac;
+    }
+
+    /**
+     * 缃戝叧Mac
+     */
+    public void setDevice_mac(String device_mac) {
+        this.device_mac = device_mac;
+    }
+    /**
+     * 缃戝叧Id
+     */
+    @NonNull
+    public String getGatewayId() {
+        return TextUtils.isEmpty(gatewayId) ? getOid() : gatewayId;
+    }
+
+    /**
+     * 缃戝叧Id
+     */
+    public void setGatewayId(String gatewayId) {
+        this.gatewayId = gatewayId;
+    }
+    /**
+     * 缃戝叧绫诲瀷
+     */
+    @NonNull
+    public String getGatewayType() {
+        return gatewayType == null ? "" : gatewayType;
+    }
+
+    /**
+     * 缃戝叧绫诲瀷
+     */
+    public void setGatewayType(String gatewayType) {
+        this.gatewayType = gatewayType;
+    }
+
+    @NonNull
+    public String getGateway_type() {
+        return gateway_type == null ? "" : gateway_type;
+    }
+
+    public void setGateway_type(String gateway_type) {
+        this.gateway_type = gateway_type;
+    }
+    /**
+     * 缃戝叧Oid
+     */
+    @NonNull
+    public String getOid() {
+        return TextUtils.isEmpty(oid) ? getDevice_mac() : oid;
+    }
+
+    /**
+     * 缃戝叧Oid
+     */
+    public void setOid(String oid) {
+        this.oid = oid;
+    }
+    /**
+     * IP鍦板潃
+     */
+    @NonNull
+    public String getIp_address() {
+        return ip_address == null ? "" : ip_address;
+    }
+
+    /**
+     * IP鍦板潃
+     */
+    public void setIp_address(String ip_address) {
+        this.ip_address = ip_address;
+    }
+    /**
+     * 杩炴帴鐨勭綉鍏崇被鍨� LAN WIFI
+     */
+    @NonNull
+    public String getAccess_mode() {
+        return access_mode == null ? "" : access_mode;
+    }
+
+    /**
+     * 杩炴帴鐨勭綉鍏崇被鍨� LAN WIFI
+     */
+    public void setAccess_mode(String access_mode) {
+        this.access_mode = access_mode;
+    }
+    /**
+     * 鏄惁涓荤綉鍏� true false
+     */
+    public String getMaster() {
+        return master == null ? "" : master;
+    }
+
+    /**
+     * 鏄惁涓荤綉鍏� true false no_config
+     */
+    public void setMaster(String master) {
+        this.master = master;
+    }
+    /**
+     * 鏄惁鍔犲瘑
+     */
+    public boolean getIsLocalEncrypt() {
+        return isLocalEncrypt;
+    }
+    /**
+     * 鏄惁鍔犲瘑
+     */
+    public void setIsLocalEncrypt(boolean localEncrypt) {
+        isLocalEncrypt = localEncrypt;
+    }
+    /**
+     * 鑾峰彇浣忓畢Id
+     */
+    @NonNull
+    public String getHomeId() {
+        return homeId == null ? "" : homeId;
+    }
+
+    /**
+     * 璁剧疆浣忓畢Id
+     */
+    public void setHomeId(String homeId) {
+        this.homeId = homeId;
+    }
+
+    /**
+     * 鑾峰彇姣背娉id
+     * @return sid
+     */
+    public String getSid() {
+        return sid==null?"":this.sid;
+    }
+    /**
+     * 璁剧疆姣背娉id
+     */
+    public void setSid(String sid) {
+        this.sid = sid;
+    }
+    /**
+     * 鏄惁鏈湴缃戝叧 true false
+     */
+    public void setIsLocalGateWay(boolean isLocalGateWay) {
+        this.isLocalGateWay = isLocalGateWay;
+    }
+    /**
+     * 鑾峰彇缃戝叧鏄惁鏈湴缃戝叧
+     */
+    public boolean getIsLocalGateway() {
+        return this.isLocalGateWay;
+    }
+
+
+    /*
+    * 妯℃澘鏍囪 wxr
+    * */
+    private boolean templateFlag = false;
+    public boolean isLocalEncrypt() {
+        return isLocalEncrypt;
+    }
+
+    public void setLocalEncrypt(boolean localEncrypt) {
+        isLocalEncrypt = localEncrypt;
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0