Skip to content
Snippets Groups Projects

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

1 file
+ 13
1
Compare changes
  • Side-by-side
  • Inline
@@ -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;
}
}
Loading