From 0770fc4f03196a27e8f4c899a44da63bb1a683e2 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 12 六月 2025 18:17:29 +0800 Subject: [PATCH] 2025年06月12日18:17:27 --- app/src/main/java/com/hdl/photovoltaic/config/UserConfigManage.java | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 108 insertions(+), 0 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 e72dbb6..6026c77 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; @@ -35,6 +36,9 @@ return sUserConfigManage; } + + //uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛� + private int uniBottomSafeDistanceBackgroundColor; //褰撳墠璐﹀彿锛氬埛鏂癟oken鐢ㄧ殑token(涓嶇敤璁板綍浠�涔堟湁鏁堟湡,濡傛灉鍒锋柊澶辫触,灏辫涪浜哄嵆鍙�) private String refreshToken; //璐︽埛鐧诲綍鎴愬姛鏃剁殑鏃堕棿 @@ -89,6 +93,83 @@ //app褰撳墠鐨勮瑷� private String currentAppLanguage; + + + //鐢ㄦ埛澶村儚 + private String userImageUrl = "/static/image/user-default-head.png"; + + + /// <summary> + /// 娉ㄥ唽鏋佸厜ID + /// </summary> + private String registrationID; + /// <summary> + /// 娣诲姞鏋佸厜ID鍒颁簯绔垚鍔熸椂杩斿洖鐨� + /// </summary> + private String pushId; + + /** + * 鏃犵綉妯″紡鏍囪瘑(true=鏃犵綉妯″紡,false=姝e父妯″紡) + */ + private boolean noNetworkFlag = false; + + /** + * 鏃犵綉妯″紡璁惧mac + */ + private String noNetworkDeviceMac; + /** + * 鏃犵綉妯″紡璁惧鐧诲綍M瀵嗙爜 + */ + private String noNetworkPassword; + + public boolean isNoNetworkFlag() { + return noNetworkFlag; + } + + public void setNoNetworkFlag(boolean noNetworkFlag) { + this.noNetworkFlag = noNetworkFlag; + } + + public String getNoNetworkDeviceMac() { + return noNetworkDeviceMac == null ? "" : noNetworkDeviceMac; + } + + public void setNoNetworkDeviceMac(String noNetworkDeviceMac) { + this.noNetworkDeviceMac = noNetworkDeviceMac; + } + + public String getNoNetworkPassword() { + return noNetworkPassword == null ? "" : noNetworkPassword; + } + + public void setNoNetworkPassword(String noNetworkPassword) { + this.noNetworkPassword = noNetworkPassword; + } + + + public String getUserImageUrl() { + return userImageUrl == null ? "/static/image/user-default-head.png" : 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; @@ -257,6 +338,24 @@ } /** + * uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛� + * + * @return 鍊� + */ + public int getUniBottomSafeDistanceBackgroundColor() { + return this.uniBottomSafeDistanceBackgroundColor; + } + + /** + * uni涓�绾х晫闈㈢殑瀹夊叏璺濈鑳屾櫙棰滆壊锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛� + * + * @param uniBottomSafeDistanceBackgroundColorValue 锛�0=鐢电珯璇︽儏鐣岄潰锛�1=娣诲姞鐢电珯鐣岄潰锛�2=璁惧璋冩祴鐣岄潰锛� + */ + public void setUniBottomSafeDistanceBackgroundColor(int uniBottomSafeDistanceBackgroundColorValue) { + this.uniBottomSafeDistanceBackgroundColor = uniBottomSafeDistanceBackgroundColorValue; + } + + /** * 褰撳墠浣忓畢 */ private HouseInfoBean m_Home = null; @@ -307,5 +406,14 @@ // SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance()); } + /** + * true琛ㄧず鏄腑鏂� + * + * @return true琛ㄧず鏄腑鏂� + */ + public boolean isZh() { + return currentAppLanguage.equals(LocalManageUtil.zh); + } + } -- Gitblit v1.8.0