From 87cd5df70918e6ba1af849c5f026d3719bfdb1ac Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 09 四月 2025 09:06:29 +0800
Subject: [PATCH] Merge branch '1.5.2' into dev

---
 app/src/main/java/com/hdl/photovoltaic/ui/bean/CloudInverterDeviceBean.java |   95 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 93 insertions(+), 2 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 2f7ae08..373f4f7 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
@@ -1,5 +1,7 @@
 package com.hdl.photovoltaic.ui.bean;
 
+import android.text.TextUtils;
+
 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.HashMap;
@@ -31,12 +33,31 @@
     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;
 
     private String hwVersion;//杞欢鐗堟湰鍙�
     private String categorySecondName;//璁惧绫诲瀷(浜у搧浜岀骇鍒嗙被鍚嶇О)
+
+    private String deviceType;//(璁惧绫诲瀷INV 锛� 閫嗗彉鍣�,BMS 锛� BMS鎺у埗鐩�,BATTERY 锛� 鐢垫睜鍗曞厓)
+
+    private String homeId;
+    private String homeName;
+    private String outputActivePower;//閫嗗彉鍣ㄨ緭鍑烘湁鍔熷姛鐜�
+    private String address;//璇︾粏鍦板潃
+    private HouseInfoBean.Location location;//鐢电珯鍦板潃
+    private String localSecret;//鎵�灞炵數绔欑殑鏈湴瀵嗛挜
+
+    private boolean ogMaster;//绂荤綉閫嗗彉鍣ㄦ墠杩斿洖
+
+    public boolean isOgMaster() {
+        return ogMaster;
+    }
+
+    public void setOgMaster(boolean ogMaster) {
+        this.ogMaster = ogMaster;
+    }
 
 
     public String getSystemStatusDesc() {
@@ -130,7 +151,7 @@
     }
 
     public String getOsn() {
-        return osn == null ? "" : "SN:" + osn;
+        return osn == null ? "" : osn;
     }
 
     public void setOsn(String osn) {
@@ -193,5 +214,75 @@
         this.online = online;
     }
 
+    public String getDeviceType() {
+        return deviceType == null ? "" : deviceType;
+    }
 
+    public void setDeviceType(String deviceType) {
+        this.deviceType = deviceType;
+    }
+
+    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 getLocalSecret() {
+        return localSecret == null ? "" : this.localSecret;
+    }
+
+    public void setLocalSecret(String localSecret) {
+        this.localSecret = localSecret;
+    }
+
+    /**
+     * 鎷间綇瀹呭湴鍧�
+     *
+     * @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();
+    }
 }

--
Gitblit v1.8.0