Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / Citrus.java
  1. package com.example.citrusclient;
  2.  
  3. import android.app.Application;
  4.  
  5. public class Citrus extends Application {
  6.  
  7. //データ保存
  8. private String token;
  9. private String accountId;
  10. private Integer curBookId;
  11. private Integer curYear;
  12. private Integer curMonth;
  13. private Integer curDay;
  14. //getter
  15. public String getToken(){
  16. return token;
  17. }
  18. public String getAccountId(){
  19. return accountId;
  20. }
  21. public Integer getCurBookId(){return curBookId;}
  22. public Integer getCurYear() {return curYear;}
  23. public Integer getCurMonth(){return curMonth;}
  24. public Integer getCurDay(){return curDay;}
  25.  
  26. //setter
  27. public void setToken(String token){
  28. this.token = token;
  29. }
  30. public void setAccountId(String accountId){
  31. this.accountId = accountId;
  32. }
  33. public void setCurBookId(Integer curBookId){this.curBookId = curBookId;}
  34. public void setCurYear(Integer curYear){this.curYear = curYear;}
  35. public void setCurMonth(Integer curMonth){this.curMonth = curMonth;}
  36. public void setCurDay(Integer curDay){this.curDay = curDay;}
  37. }