From 27d7958c1979a75cac2f820a75e6e6ac33652d63 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 16 六月 2023 18:21:17 +0800
Subject: [PATCH] 2023年06月16日18:21:15
---
app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseInfoBean.java | 198 +++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 190 insertions(+), 8 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseInfoBean.java b/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseInfoBean.java
index 715728f..891580d 100644
--- a/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseInfoBean.java
+++ b/app/src/main/java/com/hdl/photovoltaic/ui/bean/HouseInfoBean.java
@@ -1,17 +1,199 @@
package com.hdl.photovoltaic.ui.bean;
-import java.io.Serializable;
-
-public class HouseInfoBean implements Serializable {
+public class HouseInfoBean {
+ private String homeId;//鐢电珯id
+ private Location location;//鐢电珯鍦板潃
+ private String address;//璇︾粏鍦板潃
+ private String latitude;//绾害
+ private String longitude;//缁忓害
+ private String homeName;//鐢电珯鍚嶇О
+ private String timezone;//鏃跺尯
+ private int powerStationType;//鐢电珯绫诲瀷(DOMESTIC_ROOF:瀹剁敤灞嬮《,COMMERCIAL_ROOF:鍟嗕笟鐢ㄥ眿椤�,INDUSTRIAL_ROOF:宸ヤ笟鐢ㄥ眿椤�,SURFACE_POWER_STATION:鍦伴潰鐢电珯)
+ private int workMode;//宸ヤ綔妯″紡(self_use:鑷彂鑷敤,peak_load_shifting:鍓婂嘲濉胺,battery_priority:鐢垫睜浼樺厛,auto:鏅鸿兘妯″紡)
+ private String installedCapacity;//瑁呮満瀹归噺
+ private long productionTime;//鎶曚骇鏃ュ織
+ private String monetaryUnit;//璐у竵鍗曚綅
+ private String electrovalence;//鐢典环
+ private String totalCost;//鎬绘垚鏈�
- private String name;
+ private String zoneType;//鍖哄煙
- public String getName() {
- return name;
+ public String getHomeId() {
+ return homeId == null ? "" : homeId;
}
- public void setName(String name) {
- this.name = name;
+ public void setHomeId(String homeId) {
+ this.homeId = homeId;
+ }
+
+ public Location getLocation() {
+ return location == null ? new Location() : location;
+ }
+
+ public void setLocation(Location location) {
+ this.location = location;
+ }
+
+ public String getAddress() {
+ return address == null ? "" : address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+ public String getLatitude() {
+ return latitude == null ? "" : latitude;
+ }
+
+ public void setLatitude(String latitude) {
+ this.latitude = latitude;
+ }
+
+ public String getLongitude() {
+ return longitude == null ? "" : longitude;
+ }
+
+ public void setLongitude(String longitude) {
+ this.longitude = longitude;
+ }
+
+ public String getHomeName() {
+ return homeName == null ? "" : homeName;
+ }
+
+ public void setHomeName(String homeName) {
+ this.homeName = homeName;
+ }
+
+ public String getTimezone() {
+ return timezone == null ? "" : timezone;
+ }
+
+ public void setTimezone(String timezone) {
+ this.timezone = timezone;
+ }
+
+ public int getPowerStationType() {
+ return powerStationType;
+ }
+
+ public void setPowerStationType(int powerStationType) {
+ this.powerStationType = powerStationType;
+ }
+
+ public int getWorkMode() {
+ return workMode;
+ }
+
+ public void setWorkMode(int workMode) {
+ this.workMode = workMode;
+ }
+
+ public String getInstalledCapacity() {
+ return installedCapacity == null ? "" : installedCapacity;
+ }
+
+ public void setInstalledCapacity(String installedCapacity) {
+ this.installedCapacity = installedCapacity;
+ }
+
+ public long getProductionTime() {
+ return productionTime;
+ }
+
+ public void setProductionTime(long productionTime) {
+ this.productionTime = productionTime;
+ }
+
+ public String getMonetaryUnit() {
+ return monetaryUnit == null ? "" : monetaryUnit;
+ }
+
+ public void setMonetaryUnit(String monetaryUnit) {
+ this.monetaryUnit = monetaryUnit;
+ }
+
+ public String getElectrovalence() {
+ return electrovalence == null ? "" : electrovalence;
+ }
+
+ public void setElectrovalence(String electrovalence) {
+ this.electrovalence = electrovalence;
+ }
+
+ public String getTotalCost() {
+ return totalCost == null ? "" : totalCost;
+ }
+
+ public void setTotalCost(String totalCost) {
+ this.totalCost = totalCost;
+ }
+
+ public String getZoneType() {
+ return zoneType == null ? "" : zoneType;
+ }
+
+ public void setZoneType(String zoneType) {
+ this.zoneType = zoneType;
+ }
+
+ public static class Location {
+ private String nationCode;//鍥藉缂栫爜
+ private String nationName;//鍥藉鍚嶇О
+ private String provinceCode;//鐪佺紪鐮�
+ private String provinceName;//鐪佸悕绉�
+ private String cityCode;//鏄紪鐮�
+ private String cityName;//鏄悕绉�
+
+ public String getNationCode() {
+ return nationCode == null ? "" : nationCode;
+ }
+
+ public void setNationCode(String nationCode) {
+ this.nationCode = nationCode;
+ }
+
+ public String getNationName() {
+ return nationName == null ? "" : nationName;
+ }
+
+ public void setNationName(String nationName) {
+ this.nationName = nationName;
+ }
+
+ public String getProvinceCode() {
+ return provinceCode == null ? "" : provinceCode;
+ }
+
+ public void setProvinceCode(String provinceCode) {
+ this.provinceCode = provinceCode;
+ }
+
+ public String getCityCode() {
+ return cityCode == null ? "" : cityCode;
+ }
+
+ public void setCityCode(String cityCode) {
+ this.cityCode = cityCode;
+ }
+
+ public String getCityName() {
+ return cityName == null ? "" : cityName;
+ }
+
+ public void setCityName(String cityName) {
+ this.cityName = cityName;
+ }
+
+ public String getProvinceName() {
+ return provinceName == null ? "" : provinceName;
+ }
+
+ public void setProvinceName(String provinceName) {
+ this.provinceName = provinceName;
+ }
+
}
}
--
Gitblit v1.8.0