Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. import java.io.Serializable;
  2.  
  3. public class User implements Serializable {
  4.  
  5. private static final long serialVersionUID = 1L;
  6. private String username;
  7. private String password;
  8. private boolean status; //0->offline 1->online
  9. private boolean privilege; //0->regular 1->editor
  10. private boolean checkPrivilegeNotification; //0->delivered 1->not delivered
  11. private boolean checkEditNofication; //0-> delivered 1-> not delivered
  12.  
  13. User(){
  14. };
  15.  
  16. public User(String username, String password) {
  17. this.username = username;
  18. this.password = password;
  19. }
  20.  
  21. public static long getSerialVersionUID() {
  22. return serialVersionUID;
  23. }
  24.  
  25. public String getUsername() {
  26. return username;
  27. }
  28.  
  29. public void setUsername(String username) {
  30. this.username = username;
  31. }
  32.  
  33. public String getPassword() {
  34. return password;
  35. }
  36.  
  37. public void setPassword(String password) {
  38. this.password = password;
  39. }
  40.  
  41. public boolean isStatus() {
  42. return status;
  43. }
  44.  
  45. public void setStatus(boolean status) {
  46. this.status = status;
  47. }
  48.  
  49. public boolean isPrivilege() {
  50. return privilege;
  51. }
  52.  
  53. public void setPrivilege(boolean privilege) {
  54. this.privilege = privilege;
  55. }
  56.  
  57. public boolean isCheckPrivilegeNotification() {
  58. return checkPrivilegeNotification;
  59. }
  60.  
  61. public void setCheckPrivilegeNotification(boolean checkPrivilegeNotification) {
  62. this.checkPrivilegeNotification = checkPrivilegeNotification;
  63. }
  64.  
  65. public boolean isCheckEditNofication() {
  66. return checkEditNofication;
  67. }
  68.  
  69. public void setCheckEditNofication(boolean checkEditNofication) {
  70. this.checkEditNofication = checkEditNofication;
  71. }
  72.  
  73. @Override
  74. public String toString() {
  75. return "Username:" + username + "\nPassword:" + password + "\nStatus:" + status + "\nPrivilege:" + privilege + "\nPrivNotif:" + checkPrivilegeNotification + "\nEdtNotif:" + checkEditNofication;
  76. }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement