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
Branches
Tags
No related merge requests found
......@@ -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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment