Newer
Older
CitrusServer / src / main / java / org / ntlab / citrusserver / entities / Account.java
  1. package org.ntlab.citrusserver.entities;
  2.  
  3. import com.fasterxml.jackson.annotation.JsonIgnore;
  4.  
  5. public class Account {
  6. private String introduction;
  7. @JsonIgnore
  8. private int bookcount = 0;
  9. @JsonIgnore
  10. private String accountId;
  11. @JsonIgnore
  12. private String password;
  13.  
  14. public Account(String aid, String pass) {
  15. accountId = aid;
  16. password = pass;
  17. }
  18.  
  19. public void setIntroduction(String i) {introduction = i;}
  20. public String getIntroduction() {return introduction;}
  21. @JsonIgnore
  22. public int getNewBookId() {
  23. bookcount += 1;
  24. return bookcount;
  25. }
  26. @JsonIgnore
  27. public int getBookCount() {return bookcount;}
  28.  
  29. public void setId(String i) {accountId = i;}
  30. @JsonIgnore
  31. public String getId() {return accountId;}
  32. public void setPassword(String p) {password = p;}
  33. public String getPassword() {return password;}
  34.  
  35. }