diff --git a/src/main/java/org/ntlab/nemophila/models/shops/Shop.java b/src/main/java/org/ntlab/nemophila/models/shops/Shop.java index 175e18f..074ad45 100644 --- a/src/main/java/org/ntlab/nemophila/models/shops/Shop.java +++ b/src/main/java/org/ntlab/nemophila/models/shops/Shop.java @@ -1,5 +1,42 @@ package org.ntlab.nemophila.models.shops; +import com.fasterxml.jackson.annotation.JsonProperty; + public class Shop { - + @JsonProperty("id") + private String id; + @JsonProperty("name") + private String name; + @JsonProperty("longitude") + private double longitude; + @JsonProperty("latitude") + private double latitude; + + //Getter + public String getId() { + return id; + } + public String getName() { + return name; + } + public double getLongitude() { + return longitude; + } + public double getLatitude() { + return latitude; + } + + //Setter + public void setId(String id) { + id = id; + } + public void setName(String name) { + name = name; + } + public void setLongitude(double longitude) { + longitude = longitude; + } + public void setLatitude(double latitude) { + latitude = latitude; + } }