package com.xamoom.android.xamoomsdk.Resource;

import java.util.List;

import at.rags.morpheus.Annotations.Relationship;
import at.rags.morpheus.Annotations.SerializeName;
import at.rags.morpheus.Resource;

/**
 * xamoom Spot model.
 */
public class Spot extends Resource {
  private String name;
  @SerializeName("image")
  private String publicImageUrl;
  private String description;
  @SerializeName("position-longitude")
  private double lat;
  @SerializeName("position-latitude")
  private double lon;
  private List<String> tags;
  @Relationship("markers")
  private List<Marker> markers;
  @Relationship("system")
  private System system;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getPublicImageUrl() {
    return publicImageUrl;
  }

  public void setPublicImageUrl(String publicImageUrl) {
    this.publicImageUrl = publicImageUrl;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public double getLat() {
    return lat;
  }

  public void setLat(double lat) {
    this.lat = lat;
  }

  public double getLon() {
    return lon;
  }

  public void setLon(double lon) {
    this.lon = lon;
  }

  public List<String> getTags() {
    return tags;
  }

  public void setTags(List<String> tags) {
    this.tags = tags;
  }

  public List<Marker> getMarkers() {
    return markers;
  }

  public void setMarkers(List<Marker> markers) {
    this.markers = markers;
  }

  public System getSystem() {
    return system;
  }

  public void setSystem(System system) {
    this.system = system;
  }
}

@@ -63,16 +63,38 @@
 il.List;
+%0Aimport java.util.Map;
 %0A%0Aimport
@@ -408,123 +408,42 @@
 ;%0A  
-@SerializeName(%22position-longitude%22)%0A  private d
+private Map%3CString, D
 ouble
+%3E
  l
-at;%0A  @SerializeName(%22position-latitude%22)%0A  private double l
+ocati
 on;%0A
@@ -580,16 +580,70 @@
  system;
+%0A  @Relationship(%22content%22)%0A  private Content content;
 %0A%0A  publ
@@ -1084,224 +1084,8 @@
  %7D%0A%0A
-  public double getLat() %7B%0A    return lat;%0A  %7D%0A%0A  public void setLat(double lat) %7B%0A    this.lat = lat;%0A  %7D%0A%0A  public double getLon() %7B%0A    return lon;%0A  %7D%0A%0A  public void setLon(double lon) %7B%0A    this.lon = lon;%0A  %7D%0A%0A
   pu
@@ -1441,24 +1441,24 @@
 m system) %7B%0A
-
     this.sys
@@ -1474,11 +1474,437 @@
 tem;%0A  %7D
+%0A%0A  public Content getContent() %7B%0A    return content;%0A  %7D%0A%0A  public void setContent(Content content) %7B%0A    this.content = content;%0A  %7D%0A%0A  public Map%3CString, Double%3E getLocation() %7B%0A    return location;%0A  %7D%0A%0A  public void setLocation(Map%3CString, Double%3E location) %7B%0A    this.location = location;%0A  %7D%0A%0A  public double getLat() %7B%0A    return location.get(%22lat%22);%0A  %7D%0A%0A  public double getLon() %7B%0A    return location.get(%22lon%22);%0A  %7D
 %0A%7D%0A

Change false lat & lon properties