From 3ec7de773bff5582411c6f1f659d35cf8fb1734a Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 16 七月 2024 15:13:51 +0800
Subject: [PATCH] Merge branch 'feature/v1.4.1'

---
 app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseIdBean.java |  143 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 135 insertions(+), 8 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 427f308..d7bcba9 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
@@ -1,15 +1,99 @@
 package com.hdl.photovoltaic.ui.bean;
 
+import android.text.TextUtils;
+
+import com.hdl.photovoltaic.R;
+
 import java.io.Serializable;
 
+/**
+ * 鐢电珯Id瀹炰綋绫�
+ */
 public class HouseIdBean implements Serializable {
     private String homeId;//鐢电珯id
-    private String homeImage;//鐢电珯鍥剧墖
+    private String powerStationImage;//鐢电珯鍥剧墖
     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;//鏈湴閫氳绉橀挜
+
+    private boolean isMove = false;//琛ㄧず鏄惁鏄剧ず绉诲姩缁勪欢(true鏄剧ず)
+
+    private boolean isDelIcon = false;//琛ㄧず鏄惁鏄剧ず鍒犻櫎缁勪欢(true鏄剧ず)
+
+
+    private boolean state_select = false;//琛ㄧず鏄惁鏄剧ず閫変腑缁勪欢(true鏄剧ず)
+
+    private String deliverStatus;//(PAID锛氬凡浜や粯 ;UNDELIVERED 锛氭湭浜や粯)
+    private boolean isOtherShare;//鏄笉鏄垎浜殑鐢电珯
+    private String accountType;//濡傛灉鏄垎浜殑锛屽垎浜殑鏉冮檺绫诲瀷(VIEW 锛� 浠呮煡鐪�,ADMIN 锛� 鏌ョ湅鍔犳帶鍒�)
+    private boolean debugPerm;//(鏄惁寮�鍚巿鏉冨畨瑁呭晢,鏈紑鍚姸鎬佸畨瑁呬粎鏌ョ湅)
+    private HouseInfoBean.Location location;//鐢电珯鍦板潃
+
+
+    private String address;//璇︾粏鍦板潃
+
+    public String getDeliverStatus() {
+        return deliverStatus == null ? "" : deliverStatus;
+    }
+
+    public void setDeliverStatus(String deliverStatus) {
+        this.deliverStatus = deliverStatus;
+    }
+
+    public boolean isOtherShare() {
+        return isOtherShare;
+    }
+
+    public void setOtherShare(boolean otherShare) {
+        isOtherShare = otherShare;
+    }
+
+    public String getAccountType() {
+        return accountType == null ? "" : accountType;
+    }
+
+    public void setAccountType(String accountType) {
+        this.accountType = accountType;
+    }
+
+    public boolean isDebugPerm() {
+        return debugPerm;
+    }
+
+    public void setDebugPerm(boolean debugPerm) {
+        this.debugPerm = debugPerm;
+    }
+
+    public boolean isState_select() {
+        return state_select;
+    }
+
+    public void setState_select(boolean state_select) {
+        this.state_select = state_select;
+    }
+
+    public boolean isDelIcon() {
+        return isDelIcon;
+    }
+
+    public void setDelIcon(boolean delIcon) {
+        isDelIcon = delIcon;
+    }
+
+
+    public boolean isMove() {
+        return isMove;
+    }
+
+    public void setMove(boolean edit) {
+        isMove = edit;
+    }
 
     public String getHomeId() {
         return homeId == null ? "" : homeId;
@@ -19,12 +103,12 @@
         this.homeId = homeId;
     }
 
-    public String getHomeImage() {
-        return homeImage == null ? "" : homeImage;
+    public String getPowerStationImage() {
+        return powerStationImage == null ? "" : powerStationImage;
     }
 
-    public void setHomeImage(String homeImage) {
-        this.homeImage = homeImage;
+    public void setPowerStationImage(String homeImage) {
+        this.powerStationImage = homeImage;
     }
 
     public String getHomeName() {
@@ -36,7 +120,7 @@
     }
 
     public String getInstalledCapacity() {
-        return installedCapacity == null ? "" : installedCapacity;
+        return TextUtils.isEmpty(installedCapacity) ? "0" : installedCapacity;
     }
 
     public void setInstalledCapacity(String installedCapacity) {
@@ -44,7 +128,7 @@
     }
 
     public String getPower() {
-        return power == null ? "" : power;
+        return TextUtils.isEmpty(power) ? "0" : power;
     }
 
     public void setPower(String power) {
@@ -59,6 +143,14 @@
         this.todayElectricity = todayElectricity;
     }
 
+    public String getMonthElectricity() {
+        return monthElectricity == null ? "" : monthElectricity;
+    }
+
+    public void setMonthElectricity(String monthElectricity) {
+        this.monthElectricity = monthElectricity;
+    }
+
     public int getPowerStationStatus() {
         return powerStationStatus;
     }
@@ -67,4 +159,39 @@
         this.powerStationStatus = powerStationStatus;
     }
 
+    public String getLocalSecret() {
+        return localSecret == null ? "" : localSecret;
+    }
+
+    public void setLocalSecret(String localSecret) {
+        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