package com.example.citrusclient.models; public class Todo { String title; boolean check; int year; int month; int day; Integer todoId; //コンストラクタ public Todo(String t, boolean c, int y, int m, int d, Integer tid) { title = t; check = c; year = y; month = m; day = d; todoId = tid; } public Todo(){} //セッター 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 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; } }