Skip to content
Snippets Groups Projects
Commit e17936e9 authored by Goik Martin's avatar Goik Martin
Browse files

Merge branch 'weather_forecast_skeleton_fix' into 'master'

Weather forecast: Fixed wind model (API change (property gust has been added))

See merge request goik/GoikLectures!5
parents 5111a756 01ff6bc9
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"speed",
"deg"
"deg",
"gust"
})
public class Wind {
......@@ -17,6 +18,8 @@ public class Wind {
private double speed;
@JsonProperty("deg")
private int deg;
@JsonProperty("gust")
private double gust;
/**
* No args constructor for use in serialization
......@@ -56,4 +59,13 @@ public class Wind {
this.deg = deg;
}
@JsonProperty("gust")
public double getGust() {
return gust;
}
@JsonProperty("gust")
public void setGust(double gust) {
this.gust = gust;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment