package com.hdl.photovoltaic.ui.bean;
|
|
import android.text.TextUtils;
|
|
|
/**
|
* 设备(账号云端上所有设备列表)实体对象
|
*/
|
public class DeviceBean extends CloudInverterDeviceBean {
|
|
|
private String homeId;
|
private String homeName;
|
private String deviceType;//设备类型(INV逆变器,BMS控制盒,BATTERY电池单元)
|
private String outputActivePower;//逆变器输出有功功率
|
private String address;//详细地址
|
private HouseInfoBean.Location location;//电站地址
|
|
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 getDeviceType() {
|
return TextUtils.isEmpty(deviceType) ? "" : deviceType;
|
}
|
|
public void setDeviceType(String deviceType) {
|
this.deviceType = deviceType;
|
}
|
|
/**
|
* 拼住宅地址
|
*
|
* @return 住宅地址
|
*/
|
public String getHomeAddress() {
|
if (this.location == null) {
|
return this.address;
|
}
|
return this.location.getNationName() + this.location.getProvinceName() + this.location.getCityName() + this.address;
|
}
|
|
public String getHomeNameAndDeviceName() {
|
return homeName + "_" + this.getName();
|
}
|
|
}
|