Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DiscordOAuth2User implements Serializable {
- private String token;
- private double expire;
- private String refresh_token;
- private String scopes;
- private String type;
- private DiscordUser discordUser;
- public DiscordOAuth2User(String token, double expire, String refresh_token, String scopes, String type) {
- this.token = token;
- this.expire = expire;
- this.refresh_token = refresh_token;
- this.scopes = scopes;
- this.type = type;
- this.discordUser = null;
- }
- public DiscordOAuth2User(String token, double expire, String refresh_token, String scopes, String type, DiscordUser discordUser) {
- this.token = token;
- this.expire = expire;
- this.refresh_token = refresh_token;
- this.scopes = scopes;
- this.type = type;
- this.discordUser = null;
- }
- public String getToken() {
- return token;
- }
- public void setToken(String token) {
- this.token = token;
- }
- public double getExpire() {
- return expire;
- }
- public void setExpire(double expire) {
- this.expire = expire;
- }
- public String getRefresh_token() {
- return refresh_token;
- }
- public void setRefresh_token(String refresh_token) {
- this.refresh_token = refresh_token;
- }
- public String getScopes() {
- return scopes;
- }
- public void setScopes(String scopes) {
- this.scopes = scopes;
- }
- public String getType() {
- return type;
- }
- public void setType(String type) {
- this.type = type;
- }
- @Autowired
- public DiscordUser getDiscordUser() {
- return discordUser;
- }
- public void setDiscordUser(DiscordUser discordUser) {
- this.discordUser = discordUser;
- }
- @Override
- public String toString() {
- return "DiscordOAuth2User{" +
- "token='" + token + '\'' +
- ", expire=" + expire +
- ", refresh_token='" + refresh_token + '\'' +
- ", scopes='" + scopes + '\'' +
- ", type='" + type + '\'' +
- '}';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement