-
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.
Merge pull request #16 from MBenincasa/develop
Develop
- Loading branch information
Showing
29 changed files
with
2,366 additions
and
12 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
86 changes: 86 additions & 0 deletions
86
.../github/mbenincasa/javaopenweathermapclient/dto/OneCallApiCurrentAndForecastsDataDTO.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,86 @@ | ||
package io.github.mbenincasa.javaopenweathermapclient.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.github.mbenincasa.javaopenweathermapclient.dto.oneCallApi.currentAndForecasts.*; | ||
|
||
import java.util.List; | ||
|
||
public class OneCallApiCurrentAndForecastsDataDTO { | ||
|
||
private Double lat; | ||
private Double lon; | ||
private String timezone; | ||
@JsonProperty("timezone_offset") | ||
private Integer timezoneOffset; | ||
private Current current; | ||
private List<Minutely> minutely; | ||
private List<Hourly> hourly; | ||
private List<Daily> daily; | ||
private List<Alerts> alerts; | ||
|
||
public OneCallApiCurrentAndForecastsDataDTO() { | ||
} | ||
|
||
public OneCallApiCurrentAndForecastsDataDTO(Double lat, Double lon, String timezone, Integer timezoneOffset, Current current, List<Minutely> minutely, List<Hourly> hourly, List<Daily> daily, List<Alerts> alerts) { | ||
this.lat = lat; | ||
this.lon = lon; | ||
this.timezone = timezone; | ||
this.timezoneOffset = timezoneOffset; | ||
this.current = current; | ||
this.minutely = minutely; | ||
this.hourly = hourly; | ||
this.daily = daily; | ||
this.alerts = alerts; | ||
} | ||
|
||
public Double getLat() { | ||
return lat; | ||
} | ||
|
||
public Double getLon() { | ||
return lon; | ||
} | ||
|
||
public String getTimezone() { | ||
return timezone; | ||
} | ||
|
||
public Integer getTimezoneOffset() { | ||
return timezoneOffset; | ||
} | ||
|
||
public Current getCurrent() { | ||
return current; | ||
} | ||
|
||
public List<Minutely> getMinutely() { | ||
return minutely; | ||
} | ||
|
||
public List<Hourly> getHourly() { | ||
return hourly; | ||
} | ||
|
||
public List<Daily> getDaily() { | ||
return daily; | ||
} | ||
|
||
public List<Alerts> getAlerts() { | ||
return alerts; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OneCallApiCurrentAndForecastsDataDTO{" + | ||
"lat=" + lat + | ||
", lon=" + lon + | ||
", timezone='" + timezone + '\'' + | ||
", timezoneOffset=" + timezoneOffset + | ||
", current=" + current + | ||
", minutely=" + minutely + | ||
", hourly=" + hourly + | ||
", daily=" + daily + | ||
", alerts=" + alerts + | ||
'}'; | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
src/main/java/io/github/mbenincasa/javaopenweathermapclient/dto/OneCallApiDaySummaryDTO.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,98 @@ | ||
package io.github.mbenincasa.javaopenweathermapclient.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.github.mbenincasa.javaopenweathermapclient.dto.oneCallApi.daySummary.*; | ||
|
||
public class OneCallApiDaySummaryDTO { | ||
|
||
private Double lat; | ||
private Double lon; | ||
private String tz; | ||
private String date; | ||
private String units; | ||
@JsonProperty("cloud_cover") | ||
private CloudCover cloudCover; | ||
private Humidity humidity; | ||
private Precipitation precipitation; | ||
private Temperature temperature; | ||
private Pressure pressure; | ||
private Wind wind; | ||
|
||
public OneCallApiDaySummaryDTO() { | ||
} | ||
|
||
public OneCallApiDaySummaryDTO(Double lat, Double lon, String tz, String date, String units, CloudCover cloudCover, Humidity humidity, Precipitation precipitation, Temperature temperature, Pressure pressure, Wind wind) { | ||
this.lat = lat; | ||
this.lon = lon; | ||
this.tz = tz; | ||
this.date = date; | ||
this.units = units; | ||
this.cloudCover = cloudCover; | ||
this.humidity = humidity; | ||
this.precipitation = precipitation; | ||
this.temperature = temperature; | ||
this.pressure = pressure; | ||
this.wind = wind; | ||
} | ||
|
||
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 CloudCover getCloudCover() { | ||
return cloudCover; | ||
} | ||
|
||
public Humidity getHumidity() { | ||
return humidity; | ||
} | ||
|
||
public Precipitation getPrecipitation() { | ||
return precipitation; | ||
} | ||
|
||
public Temperature getTemperature() { | ||
return temperature; | ||
} | ||
|
||
public Pressure getPressure() { | ||
return pressure; | ||
} | ||
|
||
public Wind getWind() { | ||
return wind; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OneCallApiDaySummaryDTO{" + | ||
"lat=" + lat + | ||
", lon=" + lon + | ||
", tz='" + tz + '\'' + | ||
", date='" + date + '\'' + | ||
", units='" + units + '\'' + | ||
", cloudCover=" + cloudCover + | ||
", humidity=" + humidity + | ||
", precipitation=" + precipitation + | ||
", temperature=" + temperature + | ||
", pressure=" + pressure + | ||
", wind=" + wind + | ||
'}'; | ||
} | ||
} |
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 + '\'' + | ||
'}'; | ||
} | ||
} |
Oops, something went wrong.