Initial commit
This commit is contained in:
27
sources/com/ubtrobot/ubtlib/account/AccountType.java
Normal file
27
sources/com/ubtrobot/ubtlib/account/AccountType.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.ubtrobot.ubtlib.account;
|
||||
|
||||
import android.util.Patterns;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public enum AccountType {
|
||||
mobile_phone("userPhone", "1"),
|
||||
email("userEmail", "2");
|
||||
|
||||
public String typeKey;
|
||||
public String typeValue;
|
||||
|
||||
AccountType(String str, String str2) {
|
||||
this.typeKey = str;
|
||||
this.typeValue = str2;
|
||||
}
|
||||
|
||||
public static AccountType convertToEnum(String str) {
|
||||
if (Patterns.EMAIL_ADDRESS.matcher(str).find()) {
|
||||
return email;
|
||||
}
|
||||
if (Patterns.PHONE.matcher(str).find()) {
|
||||
return mobile_phone;
|
||||
}
|
||||
throw new RuntimeException("account format error, accout : " + str);
|
||||
}
|
||||
}
|
201
sources/com/ubtrobot/ubtlib/account/UbtUserEntity.java
Normal file
201
sources/com/ubtrobot/ubtlib/account/UbtUserEntity.java
Normal file
@@ -0,0 +1,201 @@
|
||||
package com.ubtrobot.ubtlib.account;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UbtUserEntity implements Parcelable {
|
||||
public static final Parcelable.Creator<UbtUserEntity> CREATOR = new Parcelable.Creator<UbtUserEntity>() { // from class: com.ubtrobot.ubtlib.account.UbtUserEntity.1
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public UbtUserEntity createFromParcel(Parcel parcel) {
|
||||
return new UbtUserEntity(parcel);
|
||||
}
|
||||
|
||||
/* JADX WARN: Can't rename method to resolve collision */
|
||||
@Override // android.os.Parcelable.Creator
|
||||
public UbtUserEntity[] newArray(int i) {
|
||||
return new UbtUserEntity[i];
|
||||
}
|
||||
};
|
||||
private String isDev;
|
||||
private String nickName;
|
||||
private Integer registerType;
|
||||
private String userBirthday;
|
||||
private String userEmail;
|
||||
private String userGender;
|
||||
private String userId;
|
||||
private String userImage;
|
||||
private String userName;
|
||||
private String userPassword;
|
||||
private String userPhone;
|
||||
private String userRoleType;
|
||||
private String userStatus;
|
||||
private String verificationCode;
|
||||
private String webappRoleId;
|
||||
|
||||
public UbtUserEntity() {
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public String getIsDev() {
|
||||
return this.isDev;
|
||||
}
|
||||
|
||||
public String getNickName() {
|
||||
return this.nickName;
|
||||
}
|
||||
|
||||
public Integer getRegisterType() {
|
||||
return this.registerType;
|
||||
}
|
||||
|
||||
public String getUserBirthday() {
|
||||
return this.userBirthday;
|
||||
}
|
||||
|
||||
public String getUserEmail() {
|
||||
return this.userEmail;
|
||||
}
|
||||
|
||||
public String getUserGender() {
|
||||
return this.userGender;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public String getUserImage() {
|
||||
return this.userImage;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return this.userName;
|
||||
}
|
||||
|
||||
public String getUserPassword() {
|
||||
return this.userPassword;
|
||||
}
|
||||
|
||||
public String getUserPhone() {
|
||||
return this.userPhone;
|
||||
}
|
||||
|
||||
public String getUserRoleType() {
|
||||
return this.userRoleType;
|
||||
}
|
||||
|
||||
public String getUserStatus() {
|
||||
return this.userStatus;
|
||||
}
|
||||
|
||||
public String getVerificationCode() {
|
||||
return this.verificationCode;
|
||||
}
|
||||
|
||||
public String getWebappRoleId() {
|
||||
return this.webappRoleId;
|
||||
}
|
||||
|
||||
public void setIsDev(String str) {
|
||||
this.isDev = str;
|
||||
}
|
||||
|
||||
public void setNickName(String str) {
|
||||
this.nickName = str;
|
||||
}
|
||||
|
||||
public void setRegisterType(Integer num) {
|
||||
this.registerType = num;
|
||||
}
|
||||
|
||||
public void setUserBirthday(String str) {
|
||||
this.userBirthday = str;
|
||||
}
|
||||
|
||||
public void setUserEmail(String str) {
|
||||
this.userEmail = str;
|
||||
}
|
||||
|
||||
public void setUserGender(String str) {
|
||||
this.userGender = str;
|
||||
}
|
||||
|
||||
public void setUserId(String str) {
|
||||
this.userId = str;
|
||||
}
|
||||
|
||||
public void setUserImage(String str) {
|
||||
this.userImage = str;
|
||||
}
|
||||
|
||||
public void setUserName(String str) {
|
||||
this.userName = str;
|
||||
}
|
||||
|
||||
public void setUserPassword(String str) {
|
||||
this.userPassword = str;
|
||||
}
|
||||
|
||||
public void setUserPhone(String str) {
|
||||
this.userPhone = str;
|
||||
}
|
||||
|
||||
public void setUserRoleType(String str) {
|
||||
this.userRoleType = str;
|
||||
}
|
||||
|
||||
public void setUserStatus(String str) {
|
||||
this.userStatus = str;
|
||||
}
|
||||
|
||||
public void setVerificationCode(String str) {
|
||||
this.verificationCode = str;
|
||||
}
|
||||
|
||||
public void setWebappRoleId(String str) {
|
||||
this.webappRoleId = str;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeString(this.userId);
|
||||
parcel.writeString(this.userName);
|
||||
parcel.writeString(this.userPassword);
|
||||
parcel.writeString(this.userEmail);
|
||||
parcel.writeString(this.userPhone);
|
||||
parcel.writeString(this.userGender);
|
||||
parcel.writeString(this.nickName);
|
||||
parcel.writeString(this.userBirthday);
|
||||
parcel.writeString(this.userStatus);
|
||||
parcel.writeString(this.userRoleType);
|
||||
parcel.writeString(this.userImage);
|
||||
parcel.writeValue(this.registerType);
|
||||
parcel.writeString(this.isDev);
|
||||
parcel.writeString(this.webappRoleId);
|
||||
parcel.writeString(this.verificationCode);
|
||||
}
|
||||
|
||||
protected UbtUserEntity(Parcel parcel) {
|
||||
this.userId = parcel.readString();
|
||||
this.userName = parcel.readString();
|
||||
this.userPassword = parcel.readString();
|
||||
this.userEmail = parcel.readString();
|
||||
this.userPhone = parcel.readString();
|
||||
this.userGender = parcel.readString();
|
||||
this.nickName = parcel.readString();
|
||||
this.userBirthday = parcel.readString();
|
||||
this.userStatus = parcel.readString();
|
||||
this.userRoleType = parcel.readString();
|
||||
this.userImage = parcel.readString();
|
||||
this.registerType = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
||||
this.isDev = parcel.readString();
|
||||
this.webappRoleId = parcel.readString();
|
||||
this.verificationCode = parcel.readString();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user