package com.hdl.linkpm.sdk.user.bean; import androidx.annotation.NonNull; import java.io.Serializable; /** * Created by jlchen on 12/3/21. */ public class HDLUserInfoBean implements Serializable { /// 用户唯一ID private String userId; /// 登录帐号 private String account; /// 用户类型 private String userType; /// 用户名字 private String name; /// 用户手机号 private String userPhone; /// 用户邮箱 private String userEmail; ///企业单位id private String companyId; /// headerPrefix private String headerPrefix; public HDLUserInfoBean() { } public HDLUserInfoBean(HDLLoginBean loginBean) { this.userId = loginBean.getUserId(); this.account = loginBean.getAccount(); this.userType = loginBean.getUserType(); this.name = loginBean.getName(); this.userPhone = loginBean.getUserPhone(); this.userEmail = loginBean.getUserEmail(); this.companyId = loginBean.getCompanyId(); this.headerPrefix = loginBean.getHeaderPrefix(); } @NonNull public String getUserId() { return userId == null ? "" : userId; } public void setUserId(@NonNull String userId) { this.userId = userId; } @NonNull public String getAccount() { return account == null ? "" : account; } public void setAccount(@NonNull String account) { this.account = account; } @NonNull public String getUserType() { return userType == null ? "" : userType; } public void setUserType(@NonNull String userType) { this.userType = userType; } @NonNull public String getName() { return name == null ? "" : name; } public void setName(@NonNull String name) { this.name = name; } @NonNull public String getUserPhone() { return userPhone == null ? "" : userPhone; } public void setUserPhone(@NonNull String userPhone) { this.userPhone = userPhone; } @NonNull public String getUserEmail() { return userEmail == null ? "" : userEmail; } public void setUserEmail(@NonNull String userEmail) { this.userEmail = userEmail; } @NonNull public String getCompanyId() { return companyId == null ? "" : companyId; } public void setCompanyId(@NonNull String companyId) { this.companyId = companyId; } @NonNull public String getHeaderPrefix() { return headerPrefix == null ? "" : headerPrefix; } public void setHeaderPrefix(@NonNull String headerPrefix) { this.headerPrefix = headerPrefix; } }