Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / models / Todo.java
  1. package com.example.citrusclient.models;
  2.  
  3. public class Todo {
  4.  
  5. String title;
  6. boolean check;
  7. int year;
  8. int month;
  9. int day;
  10. Integer todoId;
  11. Integer bookId;
  12.  
  13. //コンストラクタ
  14. public Todo(String title, boolean check, int year, int month, int day, Integer tid, Integer bid) {
  15. this.title = title;
  16. this.check = check;
  17. this.year = year;
  18. this.month = month;
  19. this.day = day;
  20. todoId = tid;
  21. this.bookId = bid;
  22. }
  23.  
  24. public Todo(){}
  25.  
  26.  
  27.  
  28. //セッター
  29. public void setTitle(String title) {this.title = title;}
  30. public void setCheck(boolean check) {this.check = check;}
  31. public void setYear(int year) {this.year = year;}
  32. public void setMonth(int month) {this.month = month;}
  33. public void setDay(int day) {this.day = day;}
  34. public void setTodoId(Integer tid) {this.todoId = tid;}
  35. public void setBookId(Integer bid) {this.bookId = bid; }
  36.  
  37. //ゲッター
  38. public String getTitle() {return title;}
  39.  
  40. public boolean getCheck() {return check;}
  41.  
  42. public int getYear() {return year;}
  43.  
  44. public int getMonth() {return month;}
  45.  
  46. public int getDay() {return day;}
  47.  
  48. public Integer getTodoId() {
  49. return todoId;
  50. }
  51. public Integer getBookId(){return bookId;}
  52.  
  53.  
  54. }