Newer
Older
CosmosClient / app / src / main / java / com / example / cosmosclient / app / Cosmos.java
package com.example.cosmosclient.app;

import android.app.Application;

import com.example.cosmosclient.entities.Group;

public class Cosmos extends Application {
    private String token=null;
    private Group curGroup=null;
    private String uId=null;

    //token処理
    public void setToken(String token){
        this.token = token;
    }
    public String getToken(){
        return token;
    }

    //Group処理
    public void setCurrentGroup(Group g){
        curGroup = g;
    }
    public Group getCurentGroup(){
        return curGroup;
    }

    //uId処理
    public void setuId(String uId){
        this.uId = uId;
    }
    public String getuId(){
        return uId;
    }
}