Guest User

Untitled

a guest
Jan 30th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package it.ytnoos.randomnumbergenerator.utils;
  2.  
  3.  
  4. import com.google.gson.Gson;
  5. import it.ytnoos.randomnumbergenerator.Main;
  6.  
  7. public class Account {
  8. private String email, username, password, json;
  9. public Account(String email, String username, String password) {
  10. this.email = email;
  11. this.username = username;
  12. this.password = password;
  13. Main.accounts.getAccounts().add(this);
  14. json = new Gson().toJson(Main.accounts);
  15. }
  16.  
  17. public String getEmail() {
  18. return email;
  19. }
  20.  
  21. public String getUsername() {
  22. return username;
  23. }
  24.  
  25. public String getPassword() {
  26. return password;
  27. }
  28.  
  29. public String getJson() {
  30. return json;
  31. }
  32. }
Add Comment
Please, Sign In to add comment