hxb
2024-06-25 c660f059d4e07a1b784442a1bbb4a5109b82e837
app/src/main/java/com/hdl/photovoltaic/ui/bean/MemberBean.java
New file
@@ -0,0 +1,232 @@
package com.hdl.photovoltaic.ui.bean;
import android.text.TextUtils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
 * 成员的实体
 */
public class MemberBean implements Serializable {
    private String id;//主键
    private String childAccountType;//子账户类型(ORDINARY :普通成员,DEBUG : 调试人员,ADMIN : 管理员,VIEW : 仅查看)
    private String childAccountId;//子账号id
    private String childAccountRegionId;//子账号区域id
    private String homeId;//电站id
    private String homeRegionId;//住宅区域id
    private boolean isRemoteControl;//远程控制 (默认true)
    private String nickName;//子账号昵称
    private String faceUrl;//成员人脸图片,图片url或者图片,base64传图片base64时固定传jpg格式的图片
    private String createPeople;//   创建人ID
    private boolean isAllowCreateScene;//创建场景
    private String modifyPeople;//最后修改人ID
    private String modifyTime;//最后修改时间
    private String region;//服务区域
    private int isDelete;//isDelete   0:未删除 1:删除
    private List<String> privileges = new ArrayList<>();//权限
    private String childAccountPhone;//手机号
    private String childAccountEmail;//邮箱
    private String childAccountRegionUrl;
    private String memberHeadIcon;
    private String memberName;
    private  String   userFaceUrl;//人脸图片
    public String getUserFaceUrl() {
        return userFaceUrl== null ? "" : userFaceUrl;
    }
    public void setUserFaceUrl(String userFaceUrl) {
        this.userFaceUrl = userFaceUrl;
    }
    public String getChildAccountPhone() {
        return childAccountPhone == null ? "" : childAccountPhone;
    }
    public void setChildAccountPhone(String childAccountPhone) {
        this.childAccountPhone = childAccountPhone;
    }
    public String getChildAccountEmail() {
        return childAccountEmail == null ? "" : childAccountEmail;
    }
    public void setChildAccountEmail(String childAccountEmail) {
        this.childAccountEmail = childAccountEmail;
    }
    public String getChildAccountRegionUrl() {
        return childAccountRegionUrl == null ? "" : childAccountRegionUrl;
    }
    public void setChildAccountRegionUrl(String childAccountRegionUrl) {
        this.childAccountRegionUrl = childAccountRegionUrl;
    }
    public String getMemberHeadIcon() {
        return memberHeadIcon == null ? "" : memberHeadIcon;
    }
    public void setMemberHeadIcon(String memberHeadIcon) {
        this.memberHeadIcon = memberHeadIcon;
    }
    public String getMemberName() {
        return memberName == null ? "" : memberName;
    }
    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }
    public int getIsDelete() {
        return isDelete;
    }
    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }
    public List<String> getPrivileges() {
        return privileges;
    }
    public void setPrivileges(List<String> privileges) {
        this.privileges = privileges;
    }
    public String getId() {
        return id == null ? "" : id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getChildAccountId() {
        return childAccountId == null ? "" : childAccountId;
    }
    public void setChildAccountId(String childAccountId) {
        this.childAccountId = childAccountId;
    }
    public String getChildAccountRegionId() {
        return childAccountRegionId == null ? "" : childAccountRegionId;
    }
    public void setChildAccountRegionId(String childAccountRegionId) {
        this.childAccountRegionId = childAccountRegionId;
    }
    public String getHomeRegionId() {
        return homeRegionId == null ? "" : homeRegionId;
    }
    public void setHomeRegionId(String homeRegionId) {
        this.homeRegionId = homeRegionId;
    }
    public boolean isRemoteControl() {
        return isRemoteControl;
    }
    public void setRemoteControl(boolean remoteControl) {
        isRemoteControl = remoteControl;
    }
    public String getFaceUrl() {
        return faceUrl == null ? "" : faceUrl;
    }
    public void setFaceUrl(String faceUrl) {
        this.faceUrl = faceUrl;
    }
    public String getCreatePeople() {
        return createPeople == null ? "" : createPeople;
    }
    public void setCreatePeople(String createPeople) {
        this.createPeople = createPeople;
    }
    public boolean isAllowCreateScene() {
        return isAllowCreateScene;
    }
    public void setAllowCreateScene(boolean allowCreateScene) {
        isAllowCreateScene = allowCreateScene;
    }
    public String getModifyPeople() {
        return modifyPeople == null ? "" : modifyPeople;
    }
    public void setModifyPeople(String modifyPeople) {
        this.modifyPeople = modifyPeople;
    }
    public String getModifyTime() {
        return modifyTime == null ? "" : modifyTime;
    }
    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }
    public String getRegion() {
        return region == null ? "" : region;
    }
    public void setRegion(String region) {
        this.region = region;
    }
    public String getAccount() {
        return TextUtils.isEmpty(getChildAccountPhone()) ? getChildAccountEmail() : getChildAccountPhone();
    }
    public String getChildAccountType() {
        return childAccountType == null ? "" : childAccountType;
    }
    public void setChildAccountType(String childAccountType) {
        this.childAccountType = childAccountType;
    }
    public String getHomeId() {
        return homeId == null ? "" : homeId;
    }
    public void setHomeId(String homeId) {
        this.homeId = homeId;
    }
    public boolean isIsRemoteControl() {
        return isRemoteControl;
    }
    public void setIsRemoteControl(boolean isRemoteControl) {
        this.isRemoteControl = isRemoteControl;
    }
    public String getNickName() {
        return nickName == null ? "" : nickName;
    }
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}