From 0c38caf2c04fd06a765be3f0a5d5db7e012b2c1a Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 28 四月 2025 18:05:37 +0800
Subject: [PATCH] 2025年04月28日18:05:35

---
 app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java |   41 ++++++++++++++++++++++++++++++++++++-----
 1 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java b/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
index d1a5959..9fb4a5a 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java
@@ -33,7 +33,7 @@
     private String systemStatusDesc;//鐘舵��
 
     private String inv;//inv鐘舵��
-    private int deviceStatus;//1:寰呮満,2:杩炴帴涓�,3:鏁呴殰,4:杩愯,5:绂荤嚎
+    private int deviceStatus;// 锛� 杩炴帴涓紝2 锛� 鏁呴殰锛�3 锛� 杩愯锛�4 锛� 绂荤嚎
     private String addresses;//瀛愮綉鍙�/璁惧鍙�
     private List<DeviceAttributeBean> status;
 
@@ -47,6 +47,29 @@
     private String outputActivePower;//閫嗗彉鍣ㄨ緭鍑烘湁鍔熷姛鐜�
     private String address;//璇︾粏鍦板潃
     private HouseInfoBean.Location location;//鐢电珯鍦板潃
+    private String localSecret;//鎵�灞炵數绔欑殑鏈湴瀵嗛挜
+
+    public String getWorkStatusDesc() {
+        return workStatusDesc==null?"":this.workStatusDesc;
+    }
+
+    public void setWorkStatusDesc(String workStatusDesc) {
+        this.workStatusDesc = workStatusDesc;
+    }
+
+    private String workStatusDesc;//宸ヤ綔鐘舵�侊紙璐熻浇涓績璁惧锛�
+
+    private boolean ogMaster;//绂荤綉閫嗗彉鍣ㄦ墠杩斿洖
+
+
+    public boolean isOgMaster() {
+        return ogMaster;
+    }
+
+    public void setOgMaster(boolean ogMaster) {
+        this.ogMaster = ogMaster;
+    }
+
 
     public String getSystemStatusDesc() {
         return systemStatusDesc == null ? "" : systemStatusDesc;
@@ -115,7 +138,8 @@
     }
 
     public String getSid() {
-        return sid == null ? "" : sid;
+
+        return TextUtils.isEmpty(sid) ? "" : sid;
     }
 
     public void setSid(String sid) {
@@ -250,6 +274,13 @@
         this.location = location;
     }
 
+    public String getLocalSecret() {
+        return localSecret == null ? "" : this.localSecret;
+    }
+
+    public void setLocalSecret(String localSecret) {
+        this.localSecret = localSecret;
+    }
 
     /**
      * 鎷间綇瀹呭湴鍧�
@@ -258,12 +289,12 @@
      */
     public String getHomeAddress() {
         if (this.location == null) {
-            return this.address;
+            return this.getAddress();
         }
-        return this.location.getNationName() + this.location.getProvinceName() + this.location.getCityName() + this.address;
+        return this.location.getNationName() + " " + this.location.getProvinceName() + " " + this.location.getCityName() + " " + this.getAddress();
     }
 
     public String getHomeNameAndDeviceName() {
-        return homeName + "_" + this.getName();
+        return this.getHomeName() + "_" + this.getName();
     }
 }

--
Gitblit v1.8.0