mac
2023-10-07 5e43612bb0afc1202fe802d4307b02cdfc05756f
HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/core/bean/gateway/GatewayBean.java
@@ -15,12 +15,11 @@
public class GatewayBean implements Serializable {
    /**
     * true-在线
     * false-离线
     */
    private boolean online=true;
    private boolean online = true;
    /**
     * 网关型号
     */
@@ -88,8 +87,14 @@
     */
    private String src;
    private String systemStatusDesc;//云端-状态
    private String hwVersion;//云端-软件版本号
    private String categorySecondName;//云端-设备类型(产品二级分类名称)
    public String getSrc() {
        return src==null?"":this.src;
        return src == null ? "" : this.src;
    }
    public void setSrc(String src) {
@@ -119,25 +124,28 @@
    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)){
        if (TextUtils.isEmpty(device_name)) {
            return getDevice_model();
        }else {
        } else {
        }
        return device_name;
@@ -155,7 +163,8 @@
    public void setTemplateSettingFlag(boolean templateSettingFlag) {
        this.templateSettingFlag = templateSettingFlag;
    }
    private String templateAddr ;
    private String templateAddr;
    public String getTemplateAddr() {
        return templateAddr == null ? "" : templateAddr;
@@ -164,7 +173,6 @@
    public void setTemplateAddr(String templateAddr) {
        this.templateAddr = templateAddr;
    }
    /**
@@ -176,6 +184,7 @@
    /**
     * 网关Mac
     *
     * @return
     */
    @NonNull
@@ -189,6 +198,7 @@
    public void setDevice_mac(String device_mac) {
        this.device_mac = device_mac;
    }
    /**
     * 网关Id
     */
@@ -203,6 +213,7 @@
    public void setGatewayId(String gatewayId) {
        this.gatewayId = gatewayId;
    }
    /**
     * 网关类型
     */
@@ -226,6 +237,7 @@
    public void setGateway_type(String gateway_type) {
        this.gateway_type = gateway_type;
    }
    /**
     * 网关Oid
     */
@@ -240,6 +252,7 @@
    public void setOid(String oid) {
        this.oid = oid;
    }
    /**
     * IP地址
     */
@@ -254,6 +267,7 @@
    public void setIp_address(String ip_address) {
        this.ip_address = ip_address;
    }
    /**
     * 连接的网关类型 LAN WIFI
     */
@@ -268,6 +282,7 @@
    public void setAccess_mode(String access_mode) {
        this.access_mode = access_mode;
    }
    /**
     * 是否主网关 true false
     */
@@ -281,18 +296,21 @@
    public void setMaster(String master) {
        this.master = master;
    }
    /**
     * 是否加密
     */
    public boolean getIsLocalEncrypt() {
        return isLocalEncrypt;
    }
    /**
     * 是否加密
     */
    public void setIsLocalEncrypt(boolean localEncrypt) {
        isLocalEncrypt = localEncrypt;
    }
    /**
     * 获取住宅Id
     */
@@ -310,23 +328,27 @@
    /**
     * 获取毫米波sid
     *
     * @return sid
     */
    public String getSid() {
        return sid==null?"":this.sid;
        return sid == null ? "" : this.sid;
    }
    /**
     * 设置毫米波sid
     */
    public void setSid(String sid) {
        this.sid = sid;
    }
    /**
     * 是否本地网关 true false
     */
    public void setIsLocalGateWay(boolean isLocalGateWay) {
        this.isLocalGateWay = isLocalGateWay;
    }
    /**
     * 获取网关是否本地网关
     */
@@ -336,9 +358,10 @@
    /*
    * 模板标记 wxr
    * */
     * 模板标记 wxr
     * */
    private boolean templateFlag = false;
    public boolean isLocalEncrypt() {
        return isLocalEncrypt;
    }
@@ -346,4 +369,29 @@
    public void setLocalEncrypt(boolean localEncrypt) {
        isLocalEncrypt = localEncrypt;
    }
    public String getSystemStatusDesc() {
        return systemStatusDesc == null ? "" : systemStatusDesc;
    }
    public void setSystemStatusDesc(String systemStatusDesc) {
        this.systemStatusDesc = systemStatusDesc;
    }
    public String getHwVersion() {
        return hwVersion == null ? "" : hwVersion;
    }
    public void setHwVersion(String hwVersion) {
        this.hwVersion = hwVersion;
    }
    public String getCategorySecondName() {
        return categorySecondName == null ? "" : categorySecondName;
    }
    public void setCategorySecondName(String categorySecondName) {
        this.categorySecondName = categorySecondName;
    }
}