| | |
| | | package com.hdl.photovoltaic.ui.bean; |
| | | |
| | | import android.text.TextUtils; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 云端逆变器实体类 |
| | | */ |
| | | public class CloudInverterDeviceBean implements Serializable { |
| | | |
| | | |
| | |
| | | */ |
| | | private boolean online; |
| | | private String gatewayId;//网关Id |
| | | private String gatewayName;//网关名称 |
| | | private String deviceId;//设备id |
| | | private String name;//设备名称 |
| | | private String spk; |
| | |
| | | private String systemStatusDesc;//状态 |
| | | |
| | | private String inv;//inv状态 |
| | | private int deviceStatus;//1:待机,2:连接中,3:故障,4:运行,5:离线 |
| | | private String addresses; |
| | | private Map<String, String> status; |
| | | private int deviceStatus;// : 连接中,2 : 故障,3 : 运行,4 : 离线 |
| | | private String addresses;//子网号/设备号 |
| | | private List<DeviceAttributeBean> status; |
| | | |
| | | private String hwVersion;//软件版本号 |
| | | private String categorySecondName;//设备类型(产品二级分类名称) |
| | | |
| | | private String deviceType;//(设备类型INV : 逆变器,BMS : BMS控制盒,BATTERY : 电池单元) |
| | | |
| | | private String homeId; |
| | | private String homeName; |
| | | private String outputActivePower;//逆变器输出有功功率 |
| | | private String address;//详细地址 |
| | | private HouseInfoBean.Location location;//电站地址 |
| | | private String localSecret;//所属电站的本地密钥 |
| | | |
| | | private boolean ogMaster;//离网逆变器才返回 |
| | | |
| | | public boolean isOgMaster() { |
| | | return ogMaster; |
| | | } |
| | | |
| | | public void setOgMaster(boolean ogMaster) { |
| | | this.ogMaster = ogMaster; |
| | | } |
| | | |
| | | |
| | | public String getSystemStatusDesc() { |
| | | return systemStatusDesc== null ? "" :systemStatusDesc; |
| | | return systemStatusDesc == null ? "" : systemStatusDesc; |
| | | } |
| | | |
| | | public void setSystemStatusDesc(String systemStatusDesc) { |
| | |
| | | } |
| | | |
| | | public String getHwVersion() { |
| | | return hwVersion== null ? "" :hwVersion; |
| | | return hwVersion == null ? "" : hwVersion; |
| | | } |
| | | |
| | | public void setHwVersion(String hwVersion) { |
| | |
| | | } |
| | | |
| | | public String getCategorySecondName() { |
| | | return categorySecondName== null ? "" :categorySecondName; |
| | | return categorySecondName == null ? "" : categorySecondName; |
| | | } |
| | | |
| | | public void setCategorySecondName(String categorySecondName) { |
| | |
| | | this.gatewayId = gatewayId; |
| | | } |
| | | |
| | | public String getGatewayName() { |
| | | return gatewayName == null ? "" : gatewayName; |
| | | } |
| | | |
| | | public void setGatewayName(String gatewayName) { |
| | | this.gatewayName = gatewayName; |
| | | } |
| | | |
| | | public String getDeviceId() { |
| | | return deviceId == null ? "" : deviceId; |
| | |
| | | } |
| | | |
| | | public String getSid() { |
| | | return sid == null ? "" : sid; |
| | | |
| | | return TextUtils.isEmpty(sid) ? "" : sid; |
| | | } |
| | | |
| | | public void setSid(String sid) { |
| | |
| | | this.addresses = addresses; |
| | | } |
| | | |
| | | public Map<String, String> getStatus() { |
| | | return status == null ? new HashMap<>() : status; |
| | | public List<DeviceAttributeBean> getStatus() { |
| | | return status == null ? new ArrayList<>() : status; |
| | | } |
| | | |
| | | public void setStatus(Map<String, String> status) { |
| | | public void setStatus(List<DeviceAttributeBean> status) { |
| | | this.status = status; |
| | | } |
| | | |
| | |
| | | public void setOnline(boolean online) { |
| | | this.online = online; |
| | | } |
| | | |
| | | public String getDeviceType() { |
| | | return deviceType == null ? "" : deviceType; |
| | | } |
| | | |
| | | public void setDeviceType(String deviceType) { |
| | | this.deviceType = deviceType; |
| | | } |
| | | |
| | | public String getHomeId() { |
| | | return TextUtils.isEmpty(homeId) ? "" : homeId; |
| | | } |
| | | |
| | | public void setHomeId(String homeId) { |
| | | this.homeId = homeId; |
| | | } |
| | | |
| | | public String getHomeName() { |
| | | return TextUtils.isEmpty(homeName) ? "" : homeName; |
| | | } |
| | | |
| | | public void setHomeName(String homeName) { |
| | | this.homeName = homeName; |
| | | } |
| | | |
| | | public String getOutputActivePower() { |
| | | return TextUtils.isEmpty(outputActivePower) ? "" : outputActivePower; |
| | | } |
| | | |
| | | public void setOutputActivePower(String outputActivePower) { |
| | | this.outputActivePower = outputActivePower; |
| | | } |
| | | |
| | | public String getAddress() { |
| | | return TextUtils.isEmpty(address) ? "" : address; |
| | | } |
| | | |
| | | public void setAddress(String address) { |
| | | this.address = address; |
| | | } |
| | | |
| | | public HouseInfoBean.Location getLocation() { |
| | | return location; |
| | | } |
| | | |
| | | public void setLocation(HouseInfoBean.Location location) { |
| | | this.location = location; |
| | | } |
| | | |
| | | public String getLocalSecret() { |
| | | return localSecret == null ? "" : this.localSecret; |
| | | } |
| | | |
| | | public void setLocalSecret(String localSecret) { |
| | | this.localSecret = localSecret; |
| | | } |
| | | |
| | | /** |
| | | * 拼住宅地址 |
| | | * |
| | | * @return 住宅地址 |
| | | */ |
| | | public String getHomeAddress() { |
| | | if (this.location == null) { |
| | | return this.getAddress(); |
| | | } |
| | | return this.location.getNationName() + " " + this.location.getProvinceName() + " " + this.location.getCityName() + " " + this.getAddress(); |
| | | } |
| | | |
| | | public String getHomeNameAndDeviceName() { |
| | | return this.getHomeName() + "_" + this.getName(); |
| | | } |
| | | } |