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 dcb5509..eb1d9a9 100644 --- a/app/src/main/java/com/example/citrusclient/models/Todo.java +++ b/app/src/main/java/com/example/citrusclient/models/Todo.java @@ -1,10 +1,40 @@ package com.example.citrusclient.models; public class Todo { + + String accountId; + Integer bookId; String title; boolean check; int year; int month; int day; Integer todoId; + + //セッター + public void setAccountId(String aid) {accountId = aid;} + public void setBookId(Integer bid) {bookId = bid;} + 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 String getAccountId() {return accountId;} + public Integer getBookId(){return bookId;} + public String getTitle() {return title;} + + public boolean getCheck() {return check;} + + public int getYear() {return year;} + + public int getMonth() {return month;} + + public int getDay() {return day;} + + public Integer getTodoId() { + return todoId; + } }