version:1.0.9
fix: update:更新资源,增加登录,增加检测更新
This commit is contained in:
55
app/src/main/java/com/xwad/os/bean/LoginInfo.java
Normal file
55
app/src/main/java/com/xwad/os/bean/LoginInfo.java
Normal file
@@ -0,0 +1,55 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user