Guest User

Untitled

a guest
Jul 23rd, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. package org.richard1992.rsps.model.player;
  2.  
  3. import org.richard1992.rsps.util.Misc;
  4.  
  5. public class PersonalDetails {
  6.  
  7. private String username;
  8. private String password;
  9. private Long longname;
  10. private int rights;
  11. private int returnCode;
  12. private boolean resizable;
  13.  
  14. public PersonalDetails(String username, String password, int mode) {
  15. this.username = username;
  16. this.password = password;
  17. this.longname = Misc.stringToLong(username);
  18. this.rights = 0;
  19. this.returnCode = 2;
  20. if (mode == 1) {
  21. this.resizable = false;
  22. } else {
  23. this.resizable = true;
  24. }
  25.  
  26. }
  27.  
  28. public String getUsername() {
  29. return username;
  30. }
  31.  
  32. public String getPassword() {
  33. return password;
  34. }
  35.  
  36. public Long getLongname() {
  37. return longname;
  38. }
  39.  
  40. public void setRights(int rights) {
  41. this.rights = rights;
  42. }
  43.  
  44. public int getRights() {
  45. return rights;
  46. }
  47.  
  48. public void setReturnCode(int returnCode) {
  49. this.returnCode = returnCode;
  50. }
  51.  
  52. public int getReturnCode() {
  53. return returnCode;
  54. }
  55.  
  56. public void setResizable(boolean resizable) {
  57. this.resizable = resizable;
  58. }
  59.  
  60. public boolean isResizable() {
  61. return resizable;
  62. }
  63.  
  64. }
Add Comment
Please, Sign In to add comment