Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / Citrus.java
package com.example.citrusclient;

import android.app.Application;

public class Citrus extends Application {

    //データ保存
    private String token;
    private String accountId;
    private Integer curBookId;
    private Integer curYear;
    private Integer curMonth;
    private Integer curDay;

    //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;}

    //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;}
}