hxb
2024-12-04 e69cc227309f3eb2025fa4ef043b075467d97de1
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;
@@ -89,6 +90,44 @@
    //app当前的语言
    private String currentAppLanguage;
    //用户头像
    private String userImageUrl = "/static/image/user-default-head.png";
    /// <summary>
    /// 注册极光ID
    /// </summary>
    public String registrationID;
    /// <summary>
    /// 添加极光ID到云端成功时返回的
    /// </summary>
    public String pushId;
    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;
@@ -307,5 +346,14 @@
//        SharedPreUtils.saveMyDataInfo("UserConfigManage.json", json, HDLApp.getInstance());
    }
    /**
     * true表示是中文
     *
     * @return true表示是中文
     */
    public boolean isZh() {
        return currentAppLanguage.equals(LocalManageUtil.zh);
    }
}