You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
852 B
50 lines
852 B
package com.community.pocket.data.model;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.room.ColumnInfo;
|
|
import androidx.room.Entity;
|
|
import androidx.room.PrimaryKey;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
/**
|
|
* 登陆令牌
|
|
*/
|
|
@Entity
|
|
public class Token {
|
|
|
|
@PrimaryKey
|
|
@NonNull
|
|
private String token;
|
|
|
|
@ColumnInfo
|
|
private Long time;
|
|
|
|
@ColumnInfo
|
|
private String username;
|
|
|
|
@NotNull
|
|
public String getToken() {
|
|
return token;
|
|
}
|
|
|
|
public void setToken(@NotNull String token) {
|
|
this.token = token;
|
|
}
|
|
|
|
public Long getTime() {
|
|
return time;
|
|
}
|
|
|
|
public void setTime(Long time) {
|
|
this.time = time;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
}
|
|
|