diff --git a/app/src/main/java/com/example/citrusclient/models/Todo.java b/app/src/main/java/com/example/citrusclient/models/Todo.java index ef088fb..10a9733 100644 --- a/app/src/main/java/com/example/citrusclient/models/Todo.java +++ b/app/src/main/java/com/example/citrusclient/models/Todo.java @@ -8,15 +8,17 @@ int month; int day; Integer todoId; + Integer bookId; //コンストラクタ - public Todo(String t, boolean c, int y, int m, int d, Integer tid) { - title = t; - check = c; - year = y; - month = m; - day = d; + public Todo(String title, boolean check, int year, int month, int day, Integer tid, Integer bid) { + this.title = title; + this.check = check; + this.year = year; + this.month = month; + this.day = day; todoId = tid; + this.bookId = bid; } public Todo(){} @@ -24,12 +26,13 @@ //セッター - public void setTitle(String t) {title = t;} - public void setCheck(boolean c) {check = c;} - public void setYear(int y) {year = y;} - public void setMonth(int m) {month = m;} - public void setDay(int d) {day = d;} - public void setTodoId(Integer t) {todoId = t;} + public void setTitle(String title) {this.title = title;} + public void setCheck(boolean check) {this.check = check;} + public void setYear(int year) {this.year = year;} + public void setMonth(int month) {this.month = month;} + public void setDay(int day) {this.day = day;} + public void setTodoId(Integer tid) {this.todoId = tid;} + public void setBookId(Integer bid) {this.bookId = bid; } //ゲッター public String getTitle() {return title;} @@ -45,6 +48,7 @@ public Integer getTodoId() { return todoId; } + public Integer getBookId(){return bookId;} }