-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One Call API 3.0 service has been added to retrieve weather overview.
- Loading branch information
1 parent
56c0440
commit 3f6ab05
Showing
3 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
src/main/java/io/github/mbenincasa/javaopenweathermapclient/dto/OneCallApiOverviewDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package io.github.mbenincasa.javaopenweathermapclient.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class OneCallApiOverviewDTO { | ||
|
||
private Double lat; | ||
private Double lon; | ||
private String tz; | ||
private String date; | ||
private String units; | ||
@JsonProperty("weather_overview") | ||
private String weatherOverview; | ||
|
||
public OneCallApiOverviewDTO() { | ||
} | ||
|
||
public OneCallApiOverviewDTO(Double lat, Double lon, String tz, String date, String units, String weatherOverview) { | ||
this.lat = lat; | ||
this.lon = lon; | ||
this.tz = tz; | ||
this.date = date; | ||
this.units = units; | ||
this.weatherOverview = weatherOverview; | ||
} | ||
|
||
public Double getLat() { | ||
return lat; | ||
} | ||
|
||
public Double getLon() { | ||
return lon; | ||
} | ||
|
||
public String getTz() { | ||
return tz; | ||
} | ||
|
||
public String getDate() { | ||
return date; | ||
} | ||
|
||
public String getUnits() { | ||
return units; | ||
} | ||
|
||
public String getWeatherOverview() { | ||
return weatherOverview; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OneCallApiOverviewDTO{" + | ||
"lat=" + lat + | ||
", lon=" + lon + | ||
", tz='" + tz + '\'' + | ||
", date='" + date + '\'' + | ||
", units='" + units + '\'' + | ||
", weatherOverview='" + weatherOverview + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters