From 7098baa8d73fa758d05ca7f49e37fbcacef225e6 Mon Sep 17 00:00:00 2001 From: Piotr Krzeszewski Date: Thu, 11 Feb 2016 11:45:24 +0100 Subject: [PATCH] #512 - fixes problem with creating geofences via API --- src/main/java/org/traccar/web/shared/model/GeoFence.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/traccar/web/shared/model/GeoFence.java b/src/main/java/org/traccar/web/shared/model/GeoFence.java index 5f924675..e8da4e09 100644 --- a/src/main/java/org/traccar/web/shared/model/GeoFence.java +++ b/src/main/java/org/traccar/web/shared/model/GeoFence.java @@ -16,6 +16,7 @@ package org.traccar.web.shared.model; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.google.gwt.user.client.rpc.GwtTransient; import com.google.gwt.user.client.rpc.IsSerializable; @@ -61,10 +62,12 @@ public String getName() { @JsonIgnore private String description; + @JsonIgnore public String getDescription() { return description; } + @JsonProperty public void setDescription(String description) { this.description = description; } @@ -83,10 +86,12 @@ public void setColor(String color) { @JsonIgnore private GeoFenceType type; + @JsonIgnore public GeoFenceType getType() { return type; } + @JsonProperty public void setType(GeoFenceType type) { this.type = type; } @@ -97,10 +102,12 @@ public void setType(GeoFenceType type) { @JsonIgnore private String points; + @JsonIgnore public String getPoints() { return points; } + @JsonProperty public void setPoints(String points) { this.points = points; } @@ -109,10 +116,12 @@ public void setPoints(String points) { @JsonIgnore private float radius; + @JsonIgnore public float getRadius() { return radius; } + @JsonProperty public void setRadius(float radius) { this.radius = radius; }