Skip to content
Snippets Groups Projects
Commit 15204d7a authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added TimeZone attribute

parent c5874bcd
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ import java.util.List; ...@@ -31,6 +31,7 @@ import java.util.List;
public class PointWeatherObservationList { public class PointWeatherObservationList {
private Coordinate coordinate; private Coordinate coordinate;
private List<WeatherObservation> observations; private List<WeatherObservation> observations;
private String timeZone;
public PointWeatherObservationList(){ public PointWeatherObservationList(){
...@@ -39,11 +40,13 @@ public class PointWeatherObservationList { ...@@ -39,11 +40,13 @@ public class PointWeatherObservationList {
@JsonCreator @JsonCreator
public PointWeatherObservationList( public PointWeatherObservationList(
@JsonProperty("coordinate") Coordinate coordinate, @JsonProperty("coordinate") Coordinate coordinate,
@JsonProperty("observations") List<WeatherObservation> observations @JsonProperty("observations") List<WeatherObservation> observations,
@JsonProperty("timeZone") String timeZone
) )
{ {
this.coordinate = coordinate; this.coordinate = coordinate;
this.observations = observations; this.observations = observations;
this.timeZone = timeZone;
} }
/** /**
...@@ -88,4 +91,18 @@ public class PointWeatherObservationList { ...@@ -88,4 +91,18 @@ public class PointWeatherObservationList {
} }
return retVal; return retVal;
} }
/**
* @return the timeZone
*/
public String getTimeZone() {
return timeZone;
}
/**
* @param timeZone the timeZone to set
*/
public void setTimeZone(String timeZone) {
this.timeZone = timeZone;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment