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、AGATEWAY、ZIGBEEGATEWAY、KNXGATEWAY private String gwFirmwareVersion;//网关固件版本 private String onlineLatestTime;// private List 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 getSlaveDevices() { if (slaveDevices == null) { return new ArrayList<>(); } return slaveDevices; } public void setSlaveDevices(@NonNull List 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; } } }