| |
---|
| | import com.example.cosmosclient.entities.AreaInformation; |
---|
| | import com.example.cosmosclient.entities.Group; |
---|
| | import android.content.SharedPreferences; |
---|
| | |
---|
| | import java.util.ArrayList; |
---|
| | import java.util.Collection; |
---|
| | import java.util.HashMap; |
---|
| | |
---|
| | public class Cosmos extends Application { |
---|
| |
---|
| | private Group curGroup=null; |
---|
| | private HashMap<String, Group> groups = new HashMap<>(); |
---|
| | private String uId=null; |
---|
| | private HashMap<Integer, AreaInformation> areaInfo = new HashMap<>(); |
---|
| | private ArrayList<Integer> areaInfoKey= new ArrayList<>(); |
---|
| | private String TAG = Cosmos.class.getSimpleName(); |
---|
| | |
---|
| | public Cosmos() { |
---|
| | super(); |
---|
| |
---|
| | public AreaInformation getAreaInfo(int areaId){ |
---|
| | return areaInfo.get(areaId); |
---|
| | } |
---|
| | |
---|
| | public ArrayList<Integer> AreaInfoGetKey(){ |
---|
| | for(int key : areaInfo.keySet()){ |
---|
| | areaInfoKey.add(key); |
---|
| | } |
---|
| | return areaInfoKey; |
---|
| | } |
---|
| | |
---|
| | } |
---|
| | |
---|
| | |