package com.example.citrusclient; import android.app.Application; import com.example.citrusclient.models.Book; import java.util.ArrayList; public class Citrus extends Application { //データ保存 private String token; private String accountId; private Integer curBookId; private Integer curYear; private Integer curMonth; private Integer curDay; private ArrayList<Book> books; //getter public String getToken(){ return token; } public String getAccountId(){ return accountId; } public Integer getCurBookId(){return curBookId;} public Integer getCurYear() {return curYear;} public Integer getCurMouth(){return curMonth;} public Integer getCurDay(){return curDay;} public ArrayList<Book> getBook(){return books;} //setter public void setToken(String token){ this.token = token; } public void setAccountId(String accountId){ this.accountId = accountId; } public void setCurBookId(Integer curBookId){this.curBookId = curBookId;} public void setCurYear(Integer curYear){this.curYear = curYear;} public void setCurMonth(Integer curMonth){this.curMonth = curMonth;} public void setCurDay(Integer curDay){this.curDay = curDay;} public void setBook(ArrayList<Book> books){this.books = books;} }