56 lines
1.0 KiB
Java
56 lines
1.0 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 LoginInfo implements Serializable {
|
|
private static final long serialVersionUID = -1274385918936999804L;
|
|
|
|
String token;
|
|
String mobile;
|
|
int id;
|
|
LoginInfoDevice device;
|
|
|
|
public String getToken() {
|
|
return token;
|
|
}
|
|
|
|
public void setToken(String token) {
|
|
this.token = token;
|
|
}
|
|
|
|
public String getMobile() {
|
|
return mobile;
|
|
}
|
|
|
|
public void setMobile(String mobile) {
|
|
this.mobile = mobile;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public LoginInfoDevice getDevice() {
|
|
return device;
|
|
}
|
|
|
|
public void setDevice(LoginInfoDevice device) {
|
|
this.device = device;
|
|
}
|
|
|
|
@NonNull
|
|
@Override
|
|
public String toString() {
|
|
return JsonParser.parseString(new Gson().toJson(this)).getAsJsonObject().toString();
|
|
}
|
|
}
|