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 442cbeb..ede712b 100644 --- a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java +++ b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java @@ -2,7 +2,11 @@ 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; import java.util.HashMap; @@ -11,6 +15,7 @@ private Group curGroup=null; private HashMap groups = new HashMap<>(); private String uId=null; + private HashMap areaInfo = new HashMap<>(); //token処理 public void setToken(String token){ @@ -51,4 +56,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); + } + }