diff --git a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java index 632820b..7eee198 100644 --- a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java +++ b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java @@ -2,12 +2,17 @@ import android.app.Application; +import com.example.cosmosclient.entities.AreaInformation; import com.example.cosmosclient.entities.Group; +import com.example.cosmosclient.entities.Location; + +import java.util.HashMap; public class Cosmos extends Application { private String token=null; private Group curGroup=null; private String uId=null; + private HashMap areaInfo = new HashMap<>(); //token処理 public void setToken(String token){ @@ -32,4 +37,13 @@ public String getuId(){ return uId; } + + //areaInfo処理 + public void setAreaInfo(int areaId, AreaInformation AreaInfo){ + this.areaInfo.put(areaId,AreaInfo); + } + public AreaInformation getAreaInfo(int areaId){ + return areaInfo.get(areaId); + } + }