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/GatewayInfoBean.java | 283 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 283 insertions(+), 0 deletions(-) diff --git a/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/GatewayInfoBean.java b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/GatewayInfoBean.java new file mode 100644 index 0000000..a9c4579 --- /dev/null +++ b/HDLLinkPMSdk/src/main/java/com/hdl/linkpm/sdk/home/bean/GatewayInfoBean.java @@ -0,0 +1,283 @@ +package com.hdl.linkpm.sdk.home.bean; + +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 GatewayInfoBean implements Serializable { + + private String gatewayId;//缃戝叧id + private String mac;//缃戝叧mac鍦板潃 + private String homeId;//浣忓畢id + private String primaryKey;//绉侀挜 + private String aesKey;//mqtt閫氫俊瀵嗛挜 + private String localSecret;//鏈湴瀵嗛挜 2021.7.5鏂板 + private String gatewayStatus;//缃戝叧鐘舵�� true false + private int encryptionType;//0.SM4 1.AES 2.涓嶅姞瀵� + private String gatewayName;//缃戝叧鍚嶇О + private String gatewayType;//BUSUDPGATEWAY銆丄GATEWAY銆乑IGBEEGATEWAY銆並NXGATEWAY + private String gwFirmwareVersion;//缃戝叧鍥轰欢鐗堟湰 + private String onlineLatestTime;// + private List<SlaveDevicesBean> slaveDevices = new ArrayList<>();//浠庤澶囦俊鎭� 2021.10.18 鏂板 + //涓嬮潰鍙傛暟涓�绔彛缃戝叧鐨勬椂鍊欐墠鏈� + private String userName;//鐢ㄦ埛鍚� + private String groupName;//缁勫悕 + private String projectName;//宸ョ▼鍚� + private String region;//鏈嶅姟鍖哄煙 + private int subnetId;//瀛愮綉鍙� + private int deviceId;//璁惧鍙� + // private String createPeople;// +// private String createTime;// +// private String modifyPeople;// +// private String modifyTime;// + + + @NonNull + public String getGatewayId() { + return gatewayId == null ? "" : gatewayId; + } + + public void setGatewayId(@NonNull String gatewayId) { + this.gatewayId = gatewayId; + } + + @NonNull + public String getMac() { + return mac == null ? "" : mac; + } + + public void setMac(@NonNull String mac) { + this.mac = mac; + } + + @NonNull + public String getHomeId() { + return homeId == null ? "" : homeId; + } + + public void setHomeId(@NonNull String homeId) { + this.homeId = homeId; + } + + @NonNull + public String getPrimaryKey() { + return primaryKey == null ? "" : primaryKey; + } + + public void setPrimaryKey(@NonNull String primaryKey) { + this.primaryKey = primaryKey; + } + + @NonNull + public String getAesKey() { + return aesKey == null ? "" : aesKey; + } + + public void setAesKey(@NonNull String aesKey) { + this.aesKey = aesKey; + } + + @NonNull + public String getLocalSecret() { + return localSecret == null ? "" : localSecret; + } + + public void setLocalSecret(@NonNull String localSecret) { + this.localSecret = localSecret; + } + + @NonNull + public String getGatewayStatus() { + return gatewayStatus == null ? "" : gatewayStatus; + } + + public void setGatewayStatus(@NonNull String gatewayStatus) { + this.gatewayStatus = gatewayStatus; + } + + public int getEncryptionType() { + return encryptionType; + } + + public void setEncryptionType(int encryptionType) { + this.encryptionType = encryptionType; + } + + @NonNull + public String getGatewayName() { + return gatewayName == null ? "" : gatewayName; + } + + public void setGatewayName(@NonNull String gatewayName) { + this.gatewayName = gatewayName; + } + + @NonNull + public String getGatewayType() { + return gatewayType == null ? "" : gatewayType; + } + + public void setGatewayType(@NonNull String gatewayType) { + this.gatewayType = gatewayType; + } + + @NonNull + public String getGwFirmwareVersion() { + return gwFirmwareVersion == null ? "" : gwFirmwareVersion; + } + + public void setGwFirmwareVersion(@NonNull String gwFirmwareVersion) { + this.gwFirmwareVersion = gwFirmwareVersion; + } + + @NonNull + public String getOnlineLatestTime() { + return onlineLatestTime == null ? "" : onlineLatestTime; + } + + public void setOnlineLatestTime(@NonNull String onlineLatestTime) { + this.onlineLatestTime = onlineLatestTime; + } + + @NonNull + public List<SlaveDevicesBean> getSlaveDevices() { + if (slaveDevices == null) { + return new ArrayList<>(); + } + return slaveDevices; + } + + public void setSlaveDevices(@NonNull List<SlaveDevicesBean> slaveDevices) { + this.slaveDevices = slaveDevices; + } + + @NonNull + public String getUserName() { + return userName == null ? "" : userName; + } + + public void setUserName(@NonNull String userName) { + this.userName = userName; + } + + @NonNull + public String getGroupName() { + return groupName == null ? "" : groupName; + } + + public void setGroupName(@NonNull String groupName) { + this.groupName = groupName; + } + + @NonNull + public String getProjectName() { + return projectName == null ? "" : projectName; + } + + public void setProjectName(@NonNull String projectName) { + this.projectName = projectName; + } + + @NonNull + public String getRegion() { + return region == null ? "" : region; + } + + public void setRegion(@NonNull String region) { + this.region = region; + } + + public int getSubnetId() { + return subnetId; + } + + public void setSubnetId(int subnetId) { + this.subnetId = subnetId; + } + + public int getDeviceId() { + return deviceId; + } + + public void setDeviceId(int deviceId) { + this.deviceId = deviceId; + } + + public static class SlaveDevicesBean implements Serializable { + private String protocolType; + private int deviceType; + private String device_name; + private String oid; + private String addresses; + private String deviceModel; + private String mac; + + @NonNull + public String getProtocolType() { + return protocolType == null ? "" : protocolType; + } + + public void setProtocolType(@NonNull String protocolType) { + this.protocolType = protocolType; + } + + public int getDeviceType() { + return deviceType; + } + + public void setDeviceType(int deviceType) { + this.deviceType = deviceType; + } + + @NonNull + public String getDevice_name() { + return device_name == null ? "" : device_name; + } + + public void setDevice_name(@NonNull String device_name) { + this.device_name = device_name; + } + + @NonNull + public String getOid() { + return oid == null ? "" : oid; + } + + public void setOid(@NonNull String oid) { + this.oid = oid; + } + + @NonNull + public String getAddresses() { + return addresses == null ? "" : addresses; + } + + public void setAddresses(@NonNull String addresses) { + this.addresses = addresses; + } + + @NonNull + public String getDeviceModel() { + return deviceModel == null ? "" : deviceModel; + } + + public void setDeviceModel(@NonNull String deviceModel) { + this.deviceModel = deviceModel; + } + + @NonNull + public String getMac() { + return mac == null ? "" : mac; + } + + public void setMac(@NonNull String mac) { + this.mac = mac; + } + } +} -- Gitblit v1.8.0