From 4598b51c90c695c9ccbe5350a84e4a46b9d8e587 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 22 五月 2024 20:19:02 +0800 Subject: [PATCH] 2024年05月22日20:18:54 --- app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseIdBean.java | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseIdBean.java b/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseIdBean.java index a20daaa..308ffdf 100644 --- a/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseIdBean.java +++ b/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseIdBean.java @@ -15,7 +15,9 @@ private String homeName;//鐢电珯鍚嶇О private String installedCapacity;//瑁呮満瀹归噺 private String power;//鍙戠數鍔熺巼 - private String todayElectricity;//浠婂ぉ鍙戠數閲� + private String todayElectricity;//褰撴棩鍙戠數閲� + private String monthElectricity;//褰撴湀鍙戠數閲� + private int powerStationStatus;//鐢电珯鐘舵��(鐢电珯鐘舵�� 1:姝e父(杩愯),2:绂荤嚎,3:杩炴帴涓�,4:鏁呴殰) private String localSecret;//鏈湴閫氳绉橀挜 @@ -26,6 +28,11 @@ private boolean state_select = false;//琛ㄧず鏄惁鏄剧ず閫変腑缁勪欢(true鏄剧ず) + + private HouseInfoBean.Location location;//鐢电珯鍦板潃 + + + private String address;//璇︾粏鍦板潃 public boolean isState_select() { @@ -101,6 +108,14 @@ this.todayElectricity = todayElectricity; } + public String getMonthElectricity() { + return monthElectricity == null ? "" : monthElectricity; + } + + public void setMonthElectricity(String monthElectricity) { + this.monthElectricity = monthElectricity; + } + public int getPowerStationStatus() { return powerStationStatus; } @@ -117,5 +132,31 @@ this.localSecret = localSecret; } + public HouseInfoBean.Location getLocation() { + return location == null ? new HouseInfoBean.Location() : location; + } + public void setLocation(HouseInfoBean.Location location) { + this.location = location; + } + + public String getAddress() { + return address == null ? "" : address; + } + + public void setAddress(String address) { + this.address = address; + } + + /** + * 鎷间綇瀹呭湴鍧� + * + * @return 浣忓畢鍦板潃 + */ + public String getHomeAddress() { + if (this.location == null) { + return this.address; + } + return this.location.getNationName() + this.location.getProvinceName() + this.location.getCityName() + this.address; + } } -- Gitblit v1.8.0