mac
2024-05-11 d0dc2a8ce665ddcc5436270550602a1b672d248f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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;
    }
 
}