From 7bb1c6a82b35290b4b28d53977fad2fe4080d3db Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期五, 31 五月 2024 12:01:58 +0800 Subject: [PATCH] 2024年05月31日12:01:45 --- app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java | 94 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 93 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java b/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java index 30255a7..d1e689c 100644 --- a/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java +++ b/app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java @@ -9,6 +9,7 @@ import com.hdl.photovoltaic.other.HdlLogLogic; import com.hdl.photovoltaic.other.HdlResidenceLogic; import com.hdl.photovoltaic.ui.bean.HouseInfoBean; +import com.hdl.photovoltaic.utils.LocalManageUtil; import com.hdl.photovoltaic.utils.SharedPreUtils; import java.util.ArrayList; @@ -77,7 +78,89 @@ //杩滅▼杩炴帴鐨凪qtt鐨勫鎴风ID public String connEmqClientId; //褰撳墠鐧诲綍鐨勮处鍙锋槸涓嶆槸涔嬪墠鐨勮处鍙� - public boolean theSameLoginAccount; + private boolean theSameLoginAccount; + + //缁戝畾鎵嬫満鍙� + private String bingPhone; + //缁戝畾閭 + private String bingEmail; + + //娓╁害鍗曚綅(C鎽勬皬搴�;F=鍗庢皬搴�) + private String temperature_unit = "鈩�"; + + //app褰撳墠鐨勮瑷� + private String currentAppLanguage; + + + //鐢ㄦ埛澶村儚 + private String userImageUrl; + + + /// <summary> + /// 娉ㄥ唽鏋佸厜ID + /// </summary> + public String registrationID; + /// <summary> + /// 娣诲姞鏋佸厜ID鍒颁簯绔垚鍔熸椂杩斿洖鐨� + /// </summary> + public String pushId; + + public String getUserImageUrl() { + return userImageUrl == null ? "" : userImageUrl; + } + + public void setUserImageUrl(String userImageUrl) { + this.userImageUrl = userImageUrl; + } + + public String getRegistrationID() { + return registrationID == null ? "" : registrationID; + } + + public void setRegistrationID(String registrationID) { + this.registrationID = registrationID; + } + + public String getPushId() { + return pushId == null ? "" : pushId; + } + + public void setPushId(String pushId) { + this.pushId = pushId; + } + + public String getCurrentAppLanguage() { + return currentAppLanguage; + } + + public void setCurrentAppLanguage(String currentAppLanguage) { + this.currentAppLanguage = currentAppLanguage; + } + + public String getTemperature_unit() { + return temperature_unit; + } + + public void setTemperature_unit(String temperature_unit) { + this.temperature_unit = temperature_unit; + } + + public String getBingPhone() { + return bingPhone == null ? "" : bingPhone; + } + + public void setBingPhone(String bingPhone) { + this.bingPhone = bingPhone; + } + + + public String getBingEmail() { + return bingEmail == null ? "" : bingEmail; + } + + public void setBingEmail(String bingEmail) { + this.bingEmail = bingEmail; + } /** * 鐢ㄦ埛鍚嶇О @@ -263,5 +346,14 @@ // SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance()); } + /** + * true琛ㄧず鏄腑鏂� + * + * @return true琛ㄧず鏄腑鏂� + */ + public boolean isZh() { + return currentAppLanguage.equals(LocalManageUtil.zh); + } + } -- Gitblit v1.8.0