From 15204d7ade5e7509dae0a080c30b197ecdb2562c Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Thu, 3 May 2018 13:05:26 +0200 Subject: [PATCH] Added TimeZone attribute --- .../entity/PointWeatherObservationList.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/no/nibio/vips/entity/PointWeatherObservationList.java b/src/main/java/no/nibio/vips/entity/PointWeatherObservationList.java index 9dddc82..af1f8f3 100644 --- a/src/main/java/no/nibio/vips/entity/PointWeatherObservationList.java +++ b/src/main/java/no/nibio/vips/entity/PointWeatherObservationList.java @@ -31,6 +31,7 @@ import java.util.List; public class PointWeatherObservationList { private Coordinate coordinate; private List<WeatherObservation> observations; + private String timeZone; public PointWeatherObservationList(){ @@ -39,11 +40,13 @@ public class PointWeatherObservationList { @JsonCreator public PointWeatherObservationList( @JsonProperty("coordinate") Coordinate coordinate, - @JsonProperty("observations") List<WeatherObservation> observations + @JsonProperty("observations") List<WeatherObservation> observations, + @JsonProperty("timeZone") String timeZone ) { this.coordinate = coordinate; this.observations = observations; + this.timeZone = timeZone; } /** @@ -88,4 +91,18 @@ public class PointWeatherObservationList { } return retVal; } + + /** + * @return the timeZone + */ + public String getTimeZone() { + return timeZone; + } + + /** + * @param timeZone the timeZone to set + */ + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } } -- GitLab