84 lines
1.6 KiB
Java
84 lines
1.6 KiB
Java
package com.xwad.os.bean;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.JsonParser;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class UserInfo implements Serializable {
|
|
private static final long serialVersionUID = -260785307483060956L;
|
|
|
|
int id;
|
|
String username;
|
|
int status;
|
|
int vip_level_id;
|
|
String mobile;
|
|
String expire_at;
|
|
VipLevel vip_level;
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public int getStatus() {
|
|
return status;
|
|
}
|
|
|
|
public void setStatus(int status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public int getVip_level_id() {
|
|
return vip_level_id;
|
|
}
|
|
|
|
public void setVip_level_id(int vip_level_id) {
|
|
this.vip_level_id = vip_level_id;
|
|
}
|
|
|
|
public String getMobile() {
|
|
return mobile;
|
|
}
|
|
|
|
public void setMobile(String mobile) {
|
|
this.mobile = mobile;
|
|
}
|
|
|
|
public String getExpire_at() {
|
|
return expire_at;
|
|
}
|
|
|
|
public void setExpire_at(String expire_at) {
|
|
this.expire_at = expire_at;
|
|
}
|
|
|
|
public VipLevel getVip_level() {
|
|
return vip_level;
|
|
}
|
|
|
|
public void setVip_level(VipLevel vip_level) {
|
|
this.vip_level = vip_level;
|
|
}
|
|
|
|
@NonNull
|
|
@Override
|
|
public String toString() {
|
|
return JsonParser.parseString(new Gson().toJson(this)).getAsJsonObject().toString();
|
|
}
|
|
}
|