Advertisement
Guest User

Untitled

a guest
Jan 4th, 2020
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. public class DiscordOAuth2User implements Serializable {
  2.  
  3. private String token;
  4. private double expire;
  5. private String refresh_token;
  6. private String scopes;
  7. private String type;
  8. private DiscordUser discordUser;
  9.  
  10. public DiscordOAuth2User(String token, double expire, String refresh_token, String scopes, String type) {
  11. this.token = token;
  12. this.expire = expire;
  13. this.refresh_token = refresh_token;
  14. this.scopes = scopes;
  15. this.type = type;
  16. this.discordUser = null;
  17. }
  18.  
  19. public DiscordOAuth2User(String token, double expire, String refresh_token, String scopes, String type, DiscordUser discordUser) {
  20. this.token = token;
  21. this.expire = expire;
  22. this.refresh_token = refresh_token;
  23. this.scopes = scopes;
  24. this.type = type;
  25. this.discordUser = null;
  26. }
  27.  
  28. public String getToken() {
  29. return token;
  30. }
  31.  
  32. public void setToken(String token) {
  33. this.token = token;
  34. }
  35.  
  36. public double getExpire() {
  37. return expire;
  38. }
  39.  
  40. public void setExpire(double expire) {
  41. this.expire = expire;
  42. }
  43.  
  44. public String getRefresh_token() {
  45. return refresh_token;
  46. }
  47.  
  48. public void setRefresh_token(String refresh_token) {
  49. this.refresh_token = refresh_token;
  50. }
  51.  
  52. public String getScopes() {
  53. return scopes;
  54. }
  55.  
  56. public void setScopes(String scopes) {
  57. this.scopes = scopes;
  58. }
  59.  
  60. public String getType() {
  61. return type;
  62. }
  63.  
  64. public void setType(String type) {
  65. this.type = type;
  66. }
  67.  
  68. @Autowired
  69. public DiscordUser getDiscordUser() {
  70. return discordUser;
  71. }
  72.  
  73. public void setDiscordUser(DiscordUser discordUser) {
  74. this.discordUser = discordUser;
  75. }
  76.  
  77. @Override
  78. public String toString() {
  79. return "DiscordOAuth2User{" +
  80. "token='" + token + '\'' +
  81. ", expire=" + expire +
  82. ", refresh_token='" + refresh_token + '\'' +
  83. ", scopes='" + scopes + '\'' +
  84. ", type='" + type + '\'' +
  85. '}';
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement