diff --git a/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java b/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java index 9bd78c9..eec5a5d 100644 --- a/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java +++ b/app/src/main/java/com/example/cosmosclient/entities/AreaInformation.java @@ -5,8 +5,16 @@ import java.util.HashMap; public class AreaInformation { - public Location location = new Location(); - public HashMap> feature = new HashMap<>(); + private Location location = new Location(); + private HashMap> feature = new HashMap<>(); public Time lastUpdated; + public void setLocation(Location location){ + this.location = location; + } + public Location getLocation(){ + return this.location; + } + + } diff --git a/app/src/main/java/com/example/cosmosclient/entities/Feature.java b/app/src/main/java/com/example/cosmosclient/entities/Feature.java index adfc4d5..63c3374 100644 --- a/app/src/main/java/com/example/cosmosclient/entities/Feature.java +++ b/app/src/main/java/com/example/cosmosclient/entities/Feature.java @@ -1,7 +1,28 @@ package com.example.cosmosclient.entities; public class Feature { - public String name; - public int code; - public Location location = new Location(); + private String name; + private int code; + private Location location = new Location(); + + public void setName(String name){ + this.name = name; + } + public String getName(){ + return this.name; + } + + public void setCode(int code){ + this.code = code; + } + public int getCode(){ + return this.code; + } + + public void setLocation(Location location){ + this.location = location; + } + public Location getLocation(){ + return this.location; + } }