Commit 3e33888f authored by EnesKarakas's avatar EnesKarakas
Browse files

de

parent 5310f102
......@@ -53,7 +53,7 @@ public class CurrentweatherApiController implements CurrentweatherApi {
@NotNull @Parameter(in = ParameterIn.QUERY, description = "For the query value, type the city name and optionally the country code divided by comma; use ISO 3166 country codes.", required = true, schema = @Schema()) @Valid @RequestParam(value = "q", required = true) String q,
@Parameter(in = ParameterIn.QUERY, description = "filter parameter", schema = @Schema()) @Valid @RequestParam(value = "filter", required = false) String filter) {
try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}";
String datafree = "{}";
RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate);
......
package io.swagger.api;
import io.swagger.model.Modelforecast;
import io.swagger.model.Modelforecast;
import io.swagger.model.ForecastDay;
import io.swagger.model.Modelforecast;
import com.fasterxml.jackson.databind.ObjectMapper;
......@@ -62,7 +61,7 @@ public class ForecastweatherApiController implements ForecastweatherApi {
@Parameter(in = ParameterIn.QUERY, description = "filter parameter", required = false, schema = @Schema()) @Valid @RequestParam(value = "filter", required = false) String filter) {
try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}";
String datafree = "{}";
RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate);
......@@ -75,8 +74,891 @@ public class ForecastweatherApiController implements ForecastweatherApi {
ResponseEntity<Modelforecast> response2 = new ResponseEntity<Modelforecast>(objectMapper.readValue(
datafree, Modelforecast.class), HttpStatus.ACCEPTED);
String[] filterlist = filter.split(",");
for (String filterindex : filterlist) {
switch (filterindex) {
case "last_updated_epoch":
response2.getBody().getCurrent()
.setLastUpdatedEpoch(response.getBody().getCurrent().getLastUpdatedEpoch());
break;
case "last_updated":
response2.getBody().getCurrent()
.setLastUpdated(response.getBody().getCurrent().getLastUpdated());
break;
case "temp_c":
response2.getBody().getCurrent().setTempC(response.getBody().getCurrent().getTempC());
break;
case "temp_f":
response2.getBody().getCurrent().setTempF(response.getBody().getCurrent().getTempF());
break;
case "id_day":
response2.getBody().getCurrent().setIdDay(response.getBody().getCurrent().getIdDay());
break;
case "condition":
response2.getBody().getCurrent().setCondition(response.getBody().getCurrent().getCondition());
break;
case "wind_mph":
response2.getBody().getCurrent().setWindMph(response.getBody().getCurrent().getWindMph());
break;
case "wind_kph":
response2.getBody().getCurrent().setWindKph(response.getBody().getCurrent().getWindKph());
break;
case "wind_degree":
response2.getBody().getCurrent().setWindDegree(response.getBody().getCurrent().getWindDegree());
break;
case "wind_dir":
response2.getBody().getCurrent().setWindDir(response.getBody().getCurrent().getWindDir());
break;
case "pressure_mb":
response2.getBody().getCurrent().setPressureMb(response.getBody().getCurrent().getPressureMb());
break;
case "pressure_in":
response2.getBody().getCurrent().setPressureIn(response.getBody().getCurrent().getPressureIn());
break;
case "precip_mm":
response2.getBody().getCurrent().setPrecipMm(response.getBody().getCurrent().getPrecipMm());
break;
case "precip_in":
response2.getBody().getCurrent().setPrecipIn(response.getBody().getCurrent().getPrecipIn());
break;
case "humidity":
response2.getBody().getCurrent().setHumidity(response.getBody().getCurrent().getHumidity());
break;
case "cloud":
response2.getBody().getCurrent().setCloud(response.getBody().getCurrent().getCloud());
break;
case "feelslike_c":
response2.getBody().getCurrent().setFeelslikeC(response.getBody().getCurrent().getFeelslikeC());
break;
case "feelslike_f":
response2.getBody().getCurrent().setFeelslikeF(response.getBody().getCurrent().getFeelslikeF());
break;
case "windchill_c":
response2.getBody().getCurrent().setWindchillC(response.getBody().getCurrent().getWindchillC());
break;
case "windchill_f":
response2.getBody().getCurrent().setWindchillF(response.getBody().getCurrent().getWindchillF());
break;
case "heatindex_c":
response2.getBody().getCurrent().setHeatindexC(response.getBody().getCurrent().getHeatindexC());
break;
case "heatindex_f":
response2.getBody().getCurrent().setHeatindexF(response.getBody().getCurrent().getHeatindexF());
break;
case "dewpoint_c":
response2.getBody().getCurrent().setDewpointC(response.getBody().getCurrent().getDewpointC());
break;
case "dewpoint_f":
response2.getBody().getCurrent().setDewpointF(response.getBody().getCurrent().getDewpointF());
break;
case "vis_km":
response2.getBody().getCurrent().setVisKm(response.getBody().getCurrent().getVisKm());
break;
case "vis_miles":
response2.getBody().getCurrent().setVisMiles(response.getBody().getCurrent().getVisMiles());
break;
case "uv":
response2.getBody().getCurrent().setUv(response.getBody().getCurrent().getUv());
break;
case "gust_mph":
response2.getBody().getCurrent().setGustMph(response.getBody().getCurrent().getGustMph());
break;
case "gust_kph":
response2.getBody().getCurrent().setGustKph(response.getBody().getCurrent().getGustKph());
break;
case "air_quality":
response2.getBody().getCurrent().setAirQuality(response.getBody().getCurrent().getAirQuality());
break;
case "name":
response2.getBody().getLocation().setName(response.getBody().getLocation().getName());
break;
case "region":
response2.getBody().getLocation().setRegion(response.getBody().getLocation().getRegion());
break;
case "country":
response2.getBody().getLocation().setCountry(response.getBody().getLocation().getCountry());
break;
case "lon":
response2.getBody().getLocation().setLon(response.getBody().getLocation().getLon());
break;
case "lat":
response2.getBody().getLocation().setLat(response.getBody().getLocation().getLat());
break;
case "tz_id":
response2.getBody().getLocation().setTzId(response.getBody().getLocation().getTzId());
break;
case "localtime_epoch":
response2.getBody().getLocation()
.setLocaltimeEpoch(response.getBody().getLocation().getLocaltimeEpoch());
break;
case "localtime":
response2.getBody().getLocation().setLocaltime(response.getBody().getLocation().getLocaltime());
break;
case "co":
response2.getBody().getCurrent().getAirQuality()
.setCo(response.getBody().getCurrent().getAirQuality().getCo());
break;
case "no2":
response2.getBody().getCurrent().getAirQuality()
.setNo2(response.getBody().getCurrent().getAirQuality().getNo2());
break;
case "o3":
response2.getBody().getCurrent().getAirQuality()
.setO3(response.getBody().getCurrent().getAirQuality().getO3());
break;
case "so2":
response2.getBody().getCurrent().getAirQuality()
.setSo2(response.getBody().getCurrent().getAirQuality().getSo2());
break;
case "pm2_5":
response2.getBody().getCurrent().getAirQuality()
.setPm25(response.getBody().getCurrent().getAirQuality().getPm25());
break;
case "pm10":
response2.getBody().getCurrent().getAirQuality()
.setPm10(response.getBody().getCurrent().getAirQuality().getPm10());
break;
case "us-epa-index":
response2.getBody().getCurrent().getAirQuality()
.setUsEpaIndex(response.getBody().getCurrent().getAirQuality().getUsEpaIndex());
break;
case "gb-defra-index":
response2.getBody().getCurrent().getAirQuality()
.setGbDefraIndex(response.getBody().getCurrent().getAirQuality().getGbDefraIndex());
break;
case "text":
response2.getBody().getCurrent().getCondition()
.setText(response.getBody().getCurrent().getCondition().getText());
break;
case "icon":
response2.getBody().getCurrent().getCondition()
.setIcon(response.getBody().getCurrent().getCondition().getIcon());
break;
case "code":
response2.getBody().getCurrent().getCondition()
.setCode(response.getBody().getCurrent().getCondition().getCode());
break;
// Forecast
case "date":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.setDate(response.getBody().getForecast().getForecastday().get(i).getDate());
}
break;
case "date_epoch":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.setDateEpoch(
response.getBody().getForecast().getForecastday().get(i).getDateEpoch());
}
break;
case "maxtemp_c":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setMaxtempC(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getMaxtempC());
}
break;
case "maxtemp_f":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setMaxtempF(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getMaxtempF());
}
break;
case "mintemp_c":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setMintempC(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getMintempC());
}
break;
case "mintemp_f":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setMintempF(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getMintempF());
}
break;
case "avgtemp_c":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setAvgtempC(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getAvgtempC());
}
break;
case "avgtemp_f":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setAvgtempF(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getAvgtempF());
}
break;
case "maxwind_mph":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setMaxwindMph(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getMaxwindMph());
}
break;
case "maxwind_kph":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setMaxwindKph(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getMaxwindKph());
}
break;
case "totalprecip_mm":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setTotalprecipMm(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getTotalprecipMm());
}
break;
case "totalprecip_in":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setTotalprecipIn(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getTotalprecipIn());
}
break;
case "avgvis_km":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setAvgvisKm(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getAvgvisKm());
}
break;
case "avgvis_miles":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setAvgvisMiles(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getAvgvisMiles());
}
break;
case "avghumidity":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setAvghumidity(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getAvghumidity());
}
break;
case "daily_will_it_rain":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setDailyWillItRain(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getDailyWillItRain());
}
break;
case "daily_chance_of_rain":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setDailyChanceOfRain(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getDailyChanceOfRain());
}
break;
case "daily_will_it_snow":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setDailyWillItSnow(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getDailyWillItSnow());
}
break;
case "daily_chance_of_snow":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setDailyChanceOfSnow(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getDailyChanceOfSnow());
}
break;
case "uv_day":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getDay().setUv_day(
response.getBody().getForecast().getForecastday().get(i).getDay()
.getUv_day());
}
break;
// astro
case "sunrise":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getAstro().setSunrise(
response.getBody().getForecast().getForecastday().get(i).getAstro()
.getSunrise());
}
break;
case "sunset":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getAstro().setSunset(
response.getBody().getForecast().getForecastday().get(i).getAstro()
.getSunset());
}
break;
case "moonrise":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getAstro().setMoonrise(
response.getBody().getForecast().getForecastday().get(i).getAstro()
.getMoonrise());
}
break;
case "moonset":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getAstro().setMoonset(
response.getBody().getForecast().getForecastday().get(i).getAstro()
.getMoonset());
}
break;
case "moon_phase":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getAstro().setMoonPhase(
response.getBody().getForecast().getForecastday().get(i).getAstro()
.getMoonPhase());
}
break;
case "moon_illumination":
for (int i = 0; i < days; i++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getAstro().setMoonIllumination(
response.getBody().getForecast().getForecastday().get(i).getAstro()
.getMoonIllumination());
}
break;
// hourly
case "hourly_time_epoch":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
try {
response2.getBody().getForecast().getForecastday().get(i);
} catch (Exception e) {
response2.getBody().getForecast().addForecastdayItem(new ForecastDay());
}
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_TimeEpoch(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_TimeEpoch());
}
}
break;
case "hourly_time":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_Time(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_Time());
}
}
break;
case "hourly_temp_c":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_TempC(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_TempC());
}
}
break;
case "hourly_temp_f":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_TempF(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_TempF());
}
}
break;
case "hourly_is_day":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_IsDay(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_IsDay());
}
}
break;
case "hourly_wind_mph":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WindMph(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WindMph());
}
}
break;
case "hourly_wind_kph":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WindKph(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WindKph());
}
}
break;
case "hourly_wind_degree":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WindDegree(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WindDegree());
}
}
break;
case "hourly_wind_dir":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WindDir(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WindDir());
}
}
break;
case "hourly_pressure_mb":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_PressureMb(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_PressureMb());
}
}
break;
case "hourly_pressure_in":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_PressureIn(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_PressureIn());
}
}
break;
case "hourly_precip_mm":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_PrecipMm(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_PrecipMm());
}
}
break;
case "hourly_precip_in":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_PrecipIn(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_PrecipIn());
}
}
break;
case "hourly_humidity":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_Humidity(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_Humidity());
}
}
break;
case "hourly_cloud":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_Cloud(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_Cloud());
}
}
break;
case "hourly_feelslike_c":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_FeelslikeC(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_FeelslikeC());
}
}
break;
case "hourly_feelslike_f":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_FeelslikeF(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_FeelslikeF());
}
}
break;
case "hourly_windchill_c":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WindchillC(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WindchillC());
}
}
break;
case "hourly_windchill_f":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WindchillF(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WindchillF());
}
}
break;
case "hourly_heatindex_c":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_HeatindexC(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_HeatindexC());
}
}
break;
case "hourly_heatindex_f":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_HeatindexF(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_HeatindexF());
}
}
break;
case "hourly_dewpoint_c":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_DewpointC(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_DewpointC());
}
}
break;
case "hourly_dewpoint_f":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_DewpointF(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_DewpointF());
}
}
break;
case "hourly_will_it_rain":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WillItRain(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WillItRain());
}
}
break;
case "hourly_chance_of_rain":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_ChanceOfRain(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_ChanceOfRain());
}
}
break;
case "hourly_will_it_snow":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_WillItSnow(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_WillItSnow());
}
}
break;
case "hourly_chance_of_snow":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_ChanceOfSnow(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_ChanceOfSnow());
}
}
break;
case "hourly_vis_km":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_VisKm(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_VisKm());
}
}
break;
case "hourly_vis_miles":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_VisMiles(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_VisMiles());
}
}
break;
case "hourly_gust_mph":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_GustMph(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_GustMph());
}
}
break;
case "hourly_gust_kph":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_GustKph(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_GustKph());
}
}
break;
case "hourly_uv":
for (int i = 0; i < days; i++) {
for (int j = 0; j < 24; j++) {
response2.getBody().getForecast().getForecastday().get(i)
.getHour().get(j).setHourly_Uv(
response.getBody().getForecast().getForecastday().get(i).getHour()
.get(j)
.getHourly_Uv());
}
}
break;
default:
break;
}
}
return response2;
} catch (IOException e) {
log.error("Couldn't serialize response for content type application/json", e);
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.threeten.bp.OffsetDateTime;
import org.springframework.validation.annotation.Validated;
......@@ -14,9 +17,9 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Alerts {
public class Alerts {
@JsonProperty("headline")
private String headline = null;
......@@ -63,12 +66,13 @@ public class Alerts {
/**
* Get headline
*
* @return headline
**/
@Schema(description = "")
@NotNull
@NotNull
public String getHeadline() {
public String getHeadline() {
return headline;
}
......@@ -83,11 +87,12 @@ public class Alerts {
/**
* Get msgtype
*
* @return msgtype
**/
@Schema(description = "")
public String getMsgtype() {
public String getMsgtype() {
return msgtype;
}
......@@ -102,11 +107,12 @@ public class Alerts {
/**
* Get severity
*
* @return severity
**/
@Schema(description = "")
public String getSeverity() {
public String getSeverity() {
return severity;
}
......@@ -121,11 +127,12 @@ public class Alerts {
/**
* Get urgency
*
* @return urgency
**/
@Schema(description = "")
public String getUrgency() {
public String getUrgency() {
return urgency;
}
......@@ -140,11 +147,12 @@ public class Alerts {
/**
* Get areas
*
* @return areas
**/
@Schema(description = "")
public String getAreas() {
public String getAreas() {
return areas;
}
......@@ -159,12 +167,13 @@ public class Alerts {
/**
* Get category
*
* @return category
**/
@Schema(description = "")
@NotNull
@NotNull
public String getCategory() {
public String getCategory() {
return category;
}
......@@ -179,11 +188,12 @@ public class Alerts {
/**
* Get certainty
*
* @return certainty
**/
@Schema(description = "")
public String getCertainty() {
public String getCertainty() {
return certainty;
}
......@@ -198,12 +208,13 @@ public class Alerts {
/**
* Get event
*
* @return event
**/
@Schema(description = "")
@NotNull
@NotNull
public String getEvent() {
public String getEvent() {
return event;
}
......@@ -218,11 +229,12 @@ public class Alerts {
/**
* Get note
*
* @return note
**/
@Schema(description = "")
public String getNote() {
public String getNote() {
return note;
}
......@@ -237,13 +249,14 @@ public class Alerts {
/**
* Get effective
*
* @return effective
**/
@Schema(description = "")
@NotNull
@NotNull
@Valid
public OffsetDateTime getEffective() {
@Valid
public OffsetDateTime getEffective() {
return effective;
}
......@@ -258,13 +271,14 @@ public class Alerts {
/**
* Get expires
*
* @return expires
**/
@Schema(description = "")
@NotNull
@NotNull
@Valid
public OffsetDateTime getExpires() {
@Valid
public OffsetDateTime getExpires() {
return expires;
}
......@@ -279,12 +293,13 @@ public class Alerts {
/**
* Get desc
*
* @return desc
**/
@Schema(description = "")
@NotNull
@NotNull
public String getDesc() {
public String getDesc() {
return desc;
}
......@@ -299,12 +314,13 @@ public class Alerts {
/**
* Get instruction
*
* @return instruction
**/
@Schema(description = "")
@NotNull
@NotNull
public String getInstruction() {
public String getInstruction() {
return instruction;
}
......@@ -312,7 +328,6 @@ public class Alerts {
this.instruction = instruction;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -339,14 +354,15 @@ public class Alerts {
@Override
public int hashCode() {
return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective, expires, desc, instruction);
return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective,
expires, desc, instruction);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Alerts {\n");
sb.append(" headline: ").append(toIndentedString(headline)).append("\n");
sb.append(" msgtype: ").append(toIndentedString(msgtype)).append("\n");
sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -13,9 +16,9 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Astro {
public class Astro {
@JsonProperty("sunrise")
private String sunrise = null;
......@@ -41,12 +44,13 @@ public class Astro {
/**
* Get sunrise
*
* @return sunrise
**/
@Schema(description = "")
@NotNull
@NotNull
public String getSunrise() {
public String getSunrise() {
return sunrise;
}
......@@ -61,12 +65,13 @@ public class Astro {
/**
* Get sunset
*
* @return sunset
**/
@Schema(description = "")
@NotNull
@NotNull
public String getSunset() {
public String getSunset() {
return sunset;
}
......@@ -81,12 +86,13 @@ public class Astro {
/**
* Get moonrise
*
* @return moonrise
**/
@Schema(description = "")
@NotNull
@NotNull
public String getMoonrise() {
public String getMoonrise() {
return moonrise;
}
......@@ -101,12 +107,13 @@ public class Astro {
/**
* Get moonset
*
* @return moonset
**/
@Schema(description = "")
@NotNull
@NotNull
public String getMoonset() {
public String getMoonset() {
return moonset;
}
......@@ -121,12 +128,13 @@ public class Astro {
/**
* Get moonPhase
*
* @return moonPhase
**/
@Schema(description = "")
@NotNull
@NotNull
public String getMoonPhase() {
public String getMoonPhase() {
return moonPhase;
}
......@@ -141,12 +149,13 @@ public class Astro {
/**
* Get moonIllumination
*
* @return moonIllumination
**/
@Schema(description = "")
@NotNull
@NotNull
public String getMoonIllumination() {
public String getMoonIllumination() {
return moonIllumination;
}
......@@ -154,7 +163,6 @@ public class Astro {
this.moonIllumination = moonIllumination;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -181,7 +189,7 @@ public class Astro {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Astro {\n");
sb.append(" sunrise: ").append(toIndentedString(sunrise)).append("\n");
sb.append(" sunset: ").append(toIndentedString(sunset)).append("\n");
sb.append(" moonrise: ").append(toIndentedString(moonrise)).append("\n");
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -13,9 +16,8 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
public class DayCondition {
@JsonInclude(Include.NON_NULL)
public class DayCondition {
@JsonProperty("maxtemp_c")
private Float maxtempC = null;
......@@ -68,7 +70,7 @@ public class DayCondition {
private Integer dailyChanceOfSnow = null;
@JsonProperty("uv")
private Float uv = null;
private Float uv_day = null;
public DayCondition maxtempC(Float maxtempC) {
this.maxtempC = maxtempC;
......@@ -77,12 +79,13 @@ public class DayCondition {
/**
* Get maxtempC
*
* @return maxtempC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getMaxtempC() {
public Float getMaxtempC() {
return maxtempC;
}
......@@ -97,12 +100,13 @@ public class DayCondition {
/**
* Get maxtempF
*
* @return maxtempF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getMaxtempF() {
public Float getMaxtempF() {
return maxtempF;
}
......@@ -117,12 +121,13 @@ public class DayCondition {
/**
* Get mintempC
*
* @return mintempC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getMintempC() {
public Float getMintempC() {
return mintempC;
}
......@@ -137,12 +142,13 @@ public class DayCondition {
/**
* Get mintempF
*
* @return mintempF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getMintempF() {
public Float getMintempF() {
return mintempF;
}
......@@ -157,12 +163,13 @@ public class DayCondition {
/**
* Get avgtempC
*
* @return avgtempC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getAvgtempC() {
public Float getAvgtempC() {
return avgtempC;
}
......@@ -177,12 +184,13 @@ public class DayCondition {
/**
* Get avgtempF
*
* @return avgtempF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getAvgtempF() {
public Float getAvgtempF() {
return avgtempF;
}
......@@ -197,12 +205,13 @@ public class DayCondition {
/**
* Get maxwindMph
*
* @return maxwindMph
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getMaxwindMph() {
public Float getMaxwindMph() {
return maxwindMph;
}
......@@ -217,12 +226,13 @@ public class DayCondition {
/**
* Get maxwindKph
*
* @return maxwindKph
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getMaxwindKph() {
public Float getMaxwindKph() {
return maxwindKph;
}
......@@ -237,12 +247,13 @@ public class DayCondition {
/**
* Get totalprecipMm
*
* @return totalprecipMm
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getTotalprecipMm() {
public Float getTotalprecipMm() {
return totalprecipMm;
}
......@@ -257,12 +268,13 @@ public class DayCondition {
/**
* Get totalprecipIn
*
* @return totalprecipIn
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getTotalprecipIn() {
public Float getTotalprecipIn() {
return totalprecipIn;
}
......@@ -277,12 +289,13 @@ public class DayCondition {
/**
* Get avgvisKm
*
* @return avgvisKm
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getAvgvisKm() {
public Float getAvgvisKm() {
return avgvisKm;
}
......@@ -297,12 +310,13 @@ public class DayCondition {
/**
* Get avgvisMiles
*
* @return avgvisMiles
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getAvgvisMiles() {
public Float getAvgvisMiles() {
return avgvisMiles;
}
......@@ -317,12 +331,13 @@ public class DayCondition {
/**
* Get avghumidity
*
* @return avghumidity
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getAvghumidity() {
public Integer getAvghumidity() {
return avghumidity;
}
......@@ -337,12 +352,13 @@ public class DayCondition {
/**
* Get dailyWillItRain
*
* @return dailyWillItRain
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getDailyWillItRain() {
public Integer getDailyWillItRain() {
return dailyWillItRain;
}
......@@ -357,12 +373,13 @@ public class DayCondition {
/**
* Get dailyChanceOfRain
*
* @return dailyChanceOfRain
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getDailyChanceOfRain() {
public Integer getDailyChanceOfRain() {
return dailyChanceOfRain;
}
......@@ -377,12 +394,13 @@ public class DayCondition {
/**
* Get dailyWillItSnow
*
* @return dailyWillItSnow
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getDailyWillItSnow() {
public Integer getDailyWillItSnow() {
return dailyWillItSnow;
}
......@@ -397,12 +415,13 @@ public class DayCondition {
/**
* Get dailyChanceOfSnow
*
* @return dailyChanceOfSnow
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getDailyChanceOfSnow() {
public Integer getDailyChanceOfSnow() {
return dailyChanceOfSnow;
}
......@@ -410,27 +429,27 @@ public class DayCondition {
this.dailyChanceOfSnow = dailyChanceOfSnow;
}
public DayCondition uv(Float uv) {
this.uv = uv;
public DayCondition uv_day(Float uv_day) {
this.uv_day = uv_day;
return this;
}
/**
* Get uv
* @return uv
* Get uv_day
*
* @return uv_day
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getUv() {
return uv;
public Float getUv_day() {
return uv_day;
}
public void setUv(Float uv) {
this.uv = uv;
public void setUv_day(Float uv_day) {
this.uv_day = uv_day;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -457,19 +476,21 @@ public class DayCondition {
Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) &&
Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) &&
Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) &&
Objects.equals(this.uv, dayCondition.uv);
Objects.equals(this.uv_day, dayCondition.uv_day);
}
@Override
public int hashCode() {
return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph, totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain, dailyWillItSnow, dailyChanceOfSnow, uv);
return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph,
totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain,
dailyWillItSnow, dailyChanceOfSnow, uv_day);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DayCondition {\n");
sb.append(" maxtempC: ").append(toIndentedString(maxtempC)).append("\n");
sb.append(" maxtempF: ").append(toIndentedString(maxtempF)).append("\n");
sb.append(" mintempC: ").append(toIndentedString(mintempC)).append("\n");
......@@ -487,7 +508,7 @@ public class DayCondition {
sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n");
sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n");
sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).append("\n");
sb.append(" uv: ").append(toIndentedString(uv)).append("\n");
sb.append(" uv_day: ").append(toIndentedString(uv_day)).append("\n");
sb.append("}");
return sb.toString();
}
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.Astro;
import io.swagger.model.DayCondition;
import io.swagger.model.HourCondition;
......@@ -18,9 +21,8 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
public class ForecastDay {
@JsonInclude(Include.NON_NULL)
public class ForecastDay {
@JsonProperty("date")
private String date = null;
......@@ -28,10 +30,10 @@ public class ForecastDay {
private Integer dateEpoch = null;
@JsonProperty("day")
private DayCondition day = null;
private DayCondition day = new DayCondition();
@JsonProperty("astro")
private Astro astro = null;
private Astro astro = new Astro();
@JsonProperty("hour")
@Valid
......@@ -44,12 +46,13 @@ public class ForecastDay {
/**
* Get date
*
* @return date
**/
@Schema(description = "")
@NotNull
@NotNull
public String getDate() {
public String getDate() {
return date;
}
......@@ -64,12 +67,13 @@ public class ForecastDay {
/**
* Get dateEpoch
*
* @return dateEpoch
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getDateEpoch() {
public Integer getDateEpoch() {
return dateEpoch;
}
......@@ -84,13 +88,14 @@ public class ForecastDay {
/**
* Get day
*
* @return day
**/
@Schema(description = "")
@NotNull
@NotNull
@Valid
public DayCondition getDay() {
@Valid
public DayCondition getDay() {
return day;
}
......@@ -105,13 +110,14 @@ public class ForecastDay {
/**
* Get astro
*
* @return astro
**/
@Schema(description = "")
@NotNull
@NotNull
@Valid
public Astro getAstro() {
@Valid
public Astro getAstro() {
return astro;
}
......@@ -134,12 +140,13 @@ public class ForecastDay {
/**
* Get hour
*
* @return hour
**/
@Schema(description = "")
@NotNull
@Valid
public List<HourCondition> getHour() {
@NotNull
@Valid
public List<HourCondition> getHour() {
return hour;
}
......@@ -147,7 +154,6 @@ public class ForecastDay {
this.hour = hour;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -173,7 +179,7 @@ public class ForecastDay {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ForecastDay {\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" dateEpoch: ").append(toIndentedString(dateEpoch)).append("\n");
sb.append(" day: ").append(toIndentedString(day)).append("\n");
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -13,746 +16,776 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
public class HourCondition {
@JsonInclude(Include.NON_NULL)
public class HourCondition {
@JsonProperty("time_epoch")
private Integer timeEpoch = null;
private Integer hourly_timeEpoch = null;
@JsonProperty("time")
private String time = null;
private String hourly_time = null;
@JsonProperty("temp_c")
private Float tempC = null;
private Float hourly_tempC = null;
@JsonProperty("temp_f")
private Float tempF = null;
private Float hourly_tempF = null;
@JsonProperty("is_day")
private Integer isDay = null;
private Integer hourly_isDay = null;
@JsonProperty("wind_mph")
private Float windMph = null;
private Float hourly_windMph = null;
@JsonProperty("wind_kph")
private Float windKph = null;
private Float hourly_windKph = null;
@JsonProperty("wind_degree")
private Integer windDegree = null;
private Integer hourly_windDegree = null;
@JsonProperty("wind_dir")
private String windDir = null;
private String hourly_windDir = null;
@JsonProperty("pressure_mb")
private Float pressureMb = null;
private Float hourly_pressureMb = null;
@JsonProperty("pressure_in")
private Float pressureIn = null;
private Float hourly_pressureIn = null;
@JsonProperty("precip_mm")
private Float precipMm = null;
private Float hourly_precipMm = null;
@JsonProperty("precip_in")
private Float precipIn = null;
private Float hourly_precipIn = null;
@JsonProperty("humidity")
private Integer humidity = null;
private Integer hourly_humidity = null;
@JsonProperty("cloud")
private Integer cloud = null;
private Integer hourly_cloud = null;
@JsonProperty("feelslike_c")
private Float feelslikeC = null;
private Float hourly_feelslikeC = null;
@JsonProperty("feelslike_f")
private Float feelslikeF = null;
private Float hourly_feelslikeF = null;
@JsonProperty("windchill_c")
private Float windchillC = null;
private Float hourly_windchillC = null;
@JsonProperty("windchill_f")
private Float windchillF = null;
private Float hourly_windchillF = null;
@JsonProperty("heatindex_c")
private Float heatindexC = null;
private Float hourly_heatindexC = null;
@JsonProperty("heatindex_f")
private Float heatindexF = null;
private Float hourly_heatindexF = null;
@JsonProperty("dewpoint_c")
private Float dewpointC = null;
private Float hourly_dewpointC = null;
@JsonProperty("dewpoint_f")
private Float dewpointF = null;
private Float hourly_dewpointF = null;
@JsonProperty("will_it_rain")
private Integer willItRain = null;
private Integer hourly_willItRain = null;
@JsonProperty("chance_of_rain")
private Integer chanceOfRain = null;
private Integer hourly_chanceOfRain = null;
@JsonProperty("will_it_snow")
private Integer willItSnow = null;
private Integer hourly_willItSnow = null;
@JsonProperty("chance_of_snow")
private Integer chanceOfSnow = null;
private Integer hourly_chanceOfSnow = null;
@JsonProperty("vis_km")
private Float visKm = null;
private Float hourly_visKm = null;
@JsonProperty("vis_miles")
private Float visMiles = null;
private Float hourly_visMiles = null;
@JsonProperty("gust_mph")
private Float gustMph = null;
private Float hourly_gustMph = null;
@JsonProperty("gust_kph")
private Float gustKph = null;
private Float hourly_gustKph = null;
@JsonProperty("uv")
private Float uv = null;
private Float hourly_uv = null;
public HourCondition timeEpoch(Integer timeEpoch) {
this.timeEpoch = timeEpoch;
public HourCondition hourly_timeEpoch(Integer hourly_timeEpoch) {
this.hourly_timeEpoch = hourly_timeEpoch;
return this;
}
/**
* Get timeEpoch
* @return timeEpoch
* Get hourly_timeEpoch
*
* @return hourly_timeEpoch
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getTimeEpoch() {
return timeEpoch;
public Integer getHourly_TimeEpoch() {
return hourly_timeEpoch;
}
public void setTimeEpoch(Integer timeEpoch) {
this.timeEpoch = timeEpoch;
public void setHourly_TimeEpoch(Integer hourly_timeEpoch) {
this.hourly_timeEpoch = hourly_timeEpoch;
}
public HourCondition time(String time) {
this.time = time;
public HourCondition hourly_time(String hourly_time) {
this.hourly_time = hourly_time;
return this;
}
/**
* Get time
* @return time
* Get hourly_time
*
* @return hourly_time
**/
@Schema(description = "")
@NotNull
@NotNull
public String getTime() {
return time;
public String getHourly_Time() {
return hourly_time;
}
public void setTime(String time) {
this.time = time;
public void setHourly_Time(String hourly_time) {
this.hourly_time = hourly_time;
}
public HourCondition tempC(Float tempC) {
this.tempC = tempC;
public HourCondition hourly_tempC(Float hourly_tempC) {
this.hourly_tempC = hourly_tempC;
return this;
}
/**
* Get tempC
* @return tempC
* Get hourly_tempC
*
* @return hourly_tempC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getTempC() {
return tempC;
public Float getHourly_TempC() {
return hourly_tempC;
}
public void setTempC(Float tempC) {
this.tempC = tempC;
public void setHourly_TempC(Float hourly_tempC) {
this.hourly_tempC = hourly_tempC;
}
public HourCondition tempF(Float tempF) {
this.tempF = tempF;
public HourCondition hourly_tempF(Float hourly_tempF) {
this.hourly_tempF = hourly_tempF;
return this;
}
/**
* Get tempF
* @return tempF
* Get hourly_tempF
*
* @return hourly_tempF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getTempF() {
return tempF;
public Float getHourly_TempF() {
return hourly_tempF;
}
public void setTempF(Float tempF) {
this.tempF = tempF;
public void setHourly_TempF(Float hourly_tempF) {
this.hourly_tempF = hourly_tempF;
}
public HourCondition isDay(Integer isDay) {
this.isDay = isDay;
public HourCondition hourly_isDay(Integer hourly_isDay) {
this.hourly_isDay = hourly_isDay;
return this;
}
/**
* Get isDay
* @return isDay
* Get hourly_isDay
*
* @return hourly_isDay
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getIsDay() {
return isDay;
public Integer getHourly_IsDay() {
return hourly_isDay;
}
public void setIsDay(Integer isDay) {
this.isDay = isDay;
public void setHourly_IsDay(Integer hourly_isDay) {
this.hourly_isDay = hourly_isDay;
}
public HourCondition windMph(Float windMph) {
this.windMph = windMph;
public HourCondition hourly_windMph(Float hourly_windMph) {
this.hourly_windMph = hourly_windMph;
return this;
}
/**
* Get windMph
* @return windMph
* Get hourly_windMph
*
* @return hourly_windMph
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getWindMph() {
return windMph;
public Float getHourly_WindMph() {
return hourly_windMph;
}
public void setWindMph(Float windMph) {
this.windMph = windMph;
public void setHourly_WindMph(Float hourly_windMph) {
this.hourly_windMph = hourly_windMph;
}
public HourCondition windKph(Float windKph) {
this.windKph = windKph;
public HourCondition hourly_windKph(Float hourly_windKph) {
this.hourly_windKph = hourly_windKph;
return this;
}
/**
* Get windKph
* @return windKph
* Get hourly_windKph
*
* @return hourly_windKph
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getWindKph() {
return windKph;
public Float getHourly_WindKph() {
return hourly_windKph;
}
public void setWindKph(Float windKph) {
this.windKph = windKph;
public void setHourly_WindKph(Float hourly_windKph) {
this.hourly_windKph = hourly_windKph;
}
public HourCondition windDegree(Integer windDegree) {
this.windDegree = windDegree;
public HourCondition hourly_windDegree(Integer hourly_windDegree) {
this.hourly_windDegree = hourly_windDegree;
return this;
}
/**
* Get windDegree
* @return windDegree
* Get hourly_windDegree
*
* @return hourly_windDegree
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getWindDegree() {
return windDegree;
public Integer getHourly_WindDegree() {
return hourly_windDegree;
}
public void setWindDegree(Integer windDegree) {
this.windDegree = windDegree;
public void setHourly_WindDegree(Integer hourly_windDegree) {
this.hourly_windDegree = hourly_windDegree;
}
public HourCondition windDir(String windDir) {
this.windDir = windDir;
public HourCondition hourly_windDir(String hourly_windDir) {
this.hourly_windDir = hourly_windDir;
return this;
}
/**
* Get windDir
* @return windDir
* Get hourly_windDir
*
* @return hourly_windDir
**/
@Schema(description = "")
@NotNull
@NotNull
public String getWindDir() {
return windDir;
public String getHourly_WindDir() {
return hourly_windDir;
}
public void setWindDir(String windDir) {
this.windDir = windDir;
public void setHourly_WindDir(String hourly_windDir) {
this.hourly_windDir = hourly_windDir;
}
public HourCondition pressureMb(Float pressureMb) {
this.pressureMb = pressureMb;
public HourCondition hourly_pressureMb(Float hourly_pressureMb) {
this.hourly_pressureMb = hourly_pressureMb;
return this;
}
/**
* Get pressureMb
* @return pressureMb
* Get hourly_pressureMb
*
* @return hourly_pressureMb
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getPressureMb() {
return pressureMb;
public Float getHourly_PressureMb() {
return hourly_pressureMb;
}
public void setPressureMb(Float pressureMb) {
this.pressureMb = pressureMb;
public void setHourly_PressureMb(Float hourly_pressureMb) {
this.hourly_pressureMb = hourly_pressureMb;
}
public HourCondition pressureIn(Float pressureIn) {
this.pressureIn = pressureIn;
public HourCondition hourly_pressureIn(Float hourly_pressureIn) {
this.hourly_pressureIn = hourly_pressureIn;
return this;
}
/**
* Get pressureIn
* @return pressureIn
* Get hourly_pressureIn
*
* @return hourly_pressureIn
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getPressureIn() {
return pressureIn;
public Float getHourly_PressureIn() {
return hourly_pressureIn;
}
public void setPressureIn(Float pressureIn) {
this.pressureIn = pressureIn;
public void setHourly_PressureIn(Float hourly_pressureIn) {
this.hourly_pressureIn = hourly_pressureIn;
}
public HourCondition precipMm(Float precipMm) {
this.precipMm = precipMm;
public HourCondition hourly_precipMm(Float hourly_precipMm) {
this.hourly_precipMm = hourly_precipMm;
return this;
}
/**
* Get precipMm
* @return precipMm
* Get hourly_precipMm
*
* @return hourly_precipMm
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getPrecipMm() {
return precipMm;
public Float getHourly_PrecipMm() {
return hourly_precipMm;
}
public void setPrecipMm(Float precipMm) {
this.precipMm = precipMm;
public void setHourly_PrecipMm(Float hourly_precipMm) {
this.hourly_precipMm = hourly_precipMm;
}
public HourCondition precipIn(Float precipIn) {
this.precipIn = precipIn;
public HourCondition hourly_precipIn(Float hourly_precipIn) {
this.hourly_precipIn = hourly_precipIn;
return this;
}
/**
* Get precipIn
* @return precipIn
* Get hourly_precipIn
*
* @return hourly_precipIn
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getPrecipIn() {
return precipIn;
public Float getHourly_PrecipIn() {
return hourly_precipIn;
}
public void setPrecipIn(Float precipIn) {
this.precipIn = precipIn;
public void setHourly_PrecipIn(Float hourly_precipIn) {
this.hourly_precipIn = hourly_precipIn;
}
public HourCondition humidity(Integer humidity) {
this.humidity = humidity;
public HourCondition hourly_humidity(Integer hourly_humidity) {
this.hourly_humidity = hourly_humidity;
return this;
}
/**
* Get humidity
* @return humidity
* Get hourly_humidity
*
* @return hourly_humidity
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getHumidity() {
return humidity;
public Integer getHourly_Humidity() {
return hourly_humidity;
}
public void setHumidity(Integer humidity) {
this.humidity = humidity;
public void setHourly_Humidity(Integer hourly_humidity) {
this.hourly_humidity = hourly_humidity;
}
public HourCondition cloud(Integer cloud) {
this.cloud = cloud;
public HourCondition hourly_cloud(Integer hourly_cloud) {
this.hourly_cloud = hourly_cloud;
return this;
}
/**
* Get cloud
* @return cloud
* Get hourly_cloud
*
* @return hourly_cloud
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getCloud() {
return cloud;
public Integer getHourly_Cloud() {
return hourly_cloud;
}
public void setCloud(Integer cloud) {
this.cloud = cloud;
public void setHourly_Cloud(Integer hourly_cloud) {
this.hourly_cloud = hourly_cloud;
}
public HourCondition feelslikeC(Float feelslikeC) {
this.feelslikeC = feelslikeC;
public HourCondition hourly_feelslikeC(Float hourly_feelslikeC) {
this.hourly_feelslikeC = hourly_feelslikeC;
return this;
}
/**
* Get feelslikeC
* @return feelslikeC
* Get hourly_feelslikeC
*
* @return hourly_feelslikeC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getFeelslikeC() {
return feelslikeC;
public Float getHourly_FeelslikeC() {
return hourly_feelslikeC;
}
public void setFeelslikeC(Float feelslikeC) {
this.feelslikeC = feelslikeC;
public void setHourly_FeelslikeC(Float hourly_feelslikeC) {
this.hourly_feelslikeC = hourly_feelslikeC;
}
public HourCondition feelslikeF(Float feelslikeF) {
this.feelslikeF = feelslikeF;
public HourCondition hourly_feelslikeF(Float hourly_feelslikeF) {
this.hourly_feelslikeF = hourly_feelslikeF;
return this;
}
/**
* Get feelslikeF
* @return feelslikeF
* Get hourly_feelslikeF
*
* @return hourly_feelslikeF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getFeelslikeF() {
return feelslikeF;
public Float getHourly_FeelslikeF() {
return hourly_feelslikeF;
}
public void setFeelslikeF(Float feelslikeF) {
this.feelslikeF = feelslikeF;
public void setHourly_FeelslikeF(Float hourly_feelslikeF) {
this.hourly_feelslikeF = hourly_feelslikeF;
}
public HourCondition windchillC(Float windchillC) {
this.windchillC = windchillC;
public HourCondition hourly_windchillC(Float hourly_windchillC) {
this.hourly_windchillC = hourly_windchillC;
return this;
}
/**
* Get windchillC
* @return windchillC
* Get hourly_windchillC
*
* @return hourly_windchillC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getWindchillC() {
return windchillC;
public Float getHourly_WindchillC() {
return hourly_windchillC;
}
public void setWindchillC(Float windchillC) {
this.windchillC = windchillC;
public void setHourly_WindchillC(Float hourly_windchillC) {
this.hourly_windchillC = hourly_windchillC;
}
public HourCondition windchillF(Float windchillF) {
this.windchillF = windchillF;
public HourCondition hourly_windchillF(Float hourly_windchillF) {
this.hourly_windchillF = hourly_windchillF;
return this;
}
/**
* Get windchillF
* @return windchillF
* Get hourly_windchillF
*
* @return hourly_windchillF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getWindchillF() {
return windchillF;
public Float getHourly_WindchillF() {
return hourly_windchillF;
}
public void setWindchillF(Float windchillF) {
this.windchillF = windchillF;
public void setHourly_WindchillF(Float hourly_windchillF) {
this.hourly_windchillF = hourly_windchillF;
}
public HourCondition heatindexC(Float heatindexC) {
this.heatindexC = heatindexC;
public HourCondition hourly_heatindexC(Float hourly_heatindexC) {
this.hourly_heatindexC = hourly_heatindexC;
return this;
}
/**
* Get heatindexC
* @return heatindexC
* Get hourly_heatindexC
*
* @return hourly_heatindexC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getHeatindexC() {
return heatindexC;
public Float getHourly_HeatindexC() {
return hourly_heatindexC;
}
public void setHeatindexC(Float heatindexC) {
this.heatindexC = heatindexC;
public void setHourly_HeatindexC(Float hourly_heatindexC) {
this.hourly_heatindexC = hourly_heatindexC;
}
public HourCondition heatindexF(Float heatindexF) {
this.heatindexF = heatindexF;
public HourCondition hourly_heatindexF(Float hourly_heatindexF) {
this.hourly_heatindexF = hourly_heatindexF;
return this;
}
/**
* Get heatindexF
* @return heatindexF
* Get hourly_heatindexF
*
* @return hourly_heatindexF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getHeatindexF() {
return heatindexF;
public Float getHourly_HeatindexF() {
return hourly_heatindexF;
}
public void setHeatindexF(Float heatindexF) {
this.heatindexF = heatindexF;
public void setHourly_HeatindexF(Float hourly_heatindexF) {
this.hourly_heatindexF = hourly_heatindexF;
}
public HourCondition dewpointC(Float dewpointC) {
this.dewpointC = dewpointC;
public HourCondition hourly_dewpointC(Float hourly_dewpointC) {
this.hourly_dewpointC = hourly_dewpointC;
return this;
}
/**
* Get dewpointC
* @return dewpointC
* Get hourly_dewpointC
*
* @return hourly_dewpointC
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getDewpointC() {
return dewpointC;
public Float getHourly_DewpointC() {
return hourly_dewpointC;
}
public void setDewpointC(Float dewpointC) {
this.dewpointC = dewpointC;
public void setHourly_DewpointC(Float hourly_dewpointC) {
this.hourly_dewpointC = hourly_dewpointC;
}
public HourCondition dewpointF(Float dewpointF) {
this.dewpointF = dewpointF;
public HourCondition hourly_dewpointF(Float hourly_dewpointF) {
this.hourly_dewpointF = hourly_dewpointF;
return this;
}
/**
* Get dewpointF
* @return dewpointF
* Get hourly_dewpointF
*
* @return hourly_dewpointF
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getDewpointF() {
return dewpointF;
public Float getHourly_DewpointF() {
return hourly_dewpointF;
}
public void setDewpointF(Float dewpointF) {
this.dewpointF = dewpointF;
public void setHourly_DewpointF(Float hourly_dewpointF) {
this.hourly_dewpointF = hourly_dewpointF;
}
public HourCondition willItRain(Integer willItRain) {
this.willItRain = willItRain;
public HourCondition hourly_willItRain(Integer hourly_willItRain) {
this.hourly_willItRain = hourly_willItRain;
return this;
}
/**
* Get willItRain
* @return willItRain
* Get hourly_willItRain
*
* @return hourly_willItRain
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getWillItRain() {
return willItRain;
public Integer getHourly_WillItRain() {
return hourly_willItRain;
}
public void setWillItRain(Integer willItRain) {
this.willItRain = willItRain;
public void setHourly_WillItRain(Integer hourly_willItRain) {
this.hourly_willItRain = hourly_willItRain;
}
public HourCondition chanceOfRain(Integer chanceOfRain) {
this.chanceOfRain = chanceOfRain;
public HourCondition hourly_chanceOfRain(Integer hourly_chanceOfRain) {
this.hourly_chanceOfRain = hourly_chanceOfRain;
return this;
}
/**
* Get chanceOfRain
* @return chanceOfRain
* Get hourly_chanceOfRain
*
* @return hourly_chanceOfRain
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getChanceOfRain() {
return chanceOfRain;
public Integer getHourly_ChanceOfRain() {
return hourly_chanceOfRain;
}
public void setChanceOfRain(Integer chanceOfRain) {
this.chanceOfRain = chanceOfRain;
public void setHourly_ChanceOfRain(Integer hourly_chanceOfRain) {
this.hourly_chanceOfRain = hourly_chanceOfRain;
}
public HourCondition willItSnow(Integer willItSnow) {
this.willItSnow = willItSnow;
public HourCondition hourly_willItSnow(Integer hourly_willItSnow) {
this.hourly_willItSnow = hourly_willItSnow;
return this;
}
/**
* Get willItSnow
* @return willItSnow
* Get hourly_willItSnow
*
* @return hourly_willItSnow
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getWillItSnow() {
return willItSnow;
public Integer getHourly_WillItSnow() {
return hourly_willItSnow;
}
public void setWillItSnow(Integer willItSnow) {
this.willItSnow = willItSnow;
public void setHourly_WillItSnow(Integer hourly_willItSnow) {
this.hourly_willItSnow = hourly_willItSnow;
}
public HourCondition chanceOfSnow(Integer chanceOfSnow) {
this.chanceOfSnow = chanceOfSnow;
public HourCondition hourly_chanceOfSnow(Integer hourly_chanceOfSnow) {
this.hourly_chanceOfSnow = hourly_chanceOfSnow;
return this;
}
/**
* Get chanceOfSnow
* @return chanceOfSnow
* Get hourly_chanceOfSnow
*
* @return hourly_chanceOfSnow
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getChanceOfSnow() {
return chanceOfSnow;
public Integer getHourly_ChanceOfSnow() {
return hourly_chanceOfSnow;
}
public void setChanceOfSnow(Integer chanceOfSnow) {
this.chanceOfSnow = chanceOfSnow;
public void setHourly_ChanceOfSnow(Integer hourly_chanceOfSnow) {
this.hourly_chanceOfSnow = hourly_chanceOfSnow;
}
public HourCondition visKm(Float visKm) {
this.visKm = visKm;
public HourCondition hourly_visKm(Float hourly_visKm) {
this.hourly_visKm = hourly_visKm;
return this;
}
/**
* Get visKm
* @return visKm
* Get hourly_visKm
*
* @return hourly_visKm
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getVisKm() {
return visKm;
public Float getHourly_VisKm() {
return hourly_visKm;
}
public void setVisKm(Float visKm) {
this.visKm = visKm;
public void setHourly_VisKm(Float hourly_visKm) {
this.hourly_visKm = hourly_visKm;
}
public HourCondition visMiles(Float visMiles) {
this.visMiles = visMiles;
public HourCondition hourly_visMiles(Float hourly_visMiles) {
this.hourly_visMiles = hourly_visMiles;
return this;
}
/**
* Get visMiles
* @return visMiles
* Get hourly_visMiles
*
* @return hourly_visMiles
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getVisMiles() {
return visMiles;
public Float getHourly_VisMiles() {
return hourly_visMiles;
}
public void setVisMiles(Float visMiles) {
this.visMiles = visMiles;
public void setHourly_VisMiles(Float hourly_visMiles) {
this.hourly_visMiles = hourly_visMiles;
}
public HourCondition gustMph(Float gustMph) {
this.gustMph = gustMph;
public HourCondition hourly_gustMph(Float hourly_gustMph) {
this.hourly_gustMph = hourly_gustMph;
return this;
}
/**
* Get gustMph
* @return gustMph
* Get hourly_gustMph
*
* @return hourly_gustMph
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getGustMph() {
return gustMph;
public Float getHourly_GustMph() {
return hourly_gustMph;
}
public void setGustMph(Float gustMph) {
this.gustMph = gustMph;
public void setHourly_GustMph(Float hourly_gustMph) {
this.hourly_gustMph = hourly_gustMph;
}
public HourCondition gustKph(Float gustKph) {
this.gustKph = gustKph;
public HourCondition hourly_gustKph(Float hourly_gustKph) {
this.hourly_gustKph = hourly_gustKph;
return this;
}
/**
* Get gustKph
* @return gustKph
* Get hourly_gustKph
*
* @return hourly_gustKph
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getGustKph() {
return gustKph;
public Float getHourly_GustKph() {
return hourly_gustKph;
}
public void setGustKph(Float gustKph) {
this.gustKph = gustKph;
public void setHourly_GustKph(Float hourly_gustKph) {
this.hourly_gustKph = hourly_gustKph;
}
public HourCondition uv(Float uv) {
this.uv = uv;
public HourCondition hourly_uv(Float hourly_uv) {
this.hourly_uv = hourly_uv;
return this;
}
/**
* Get uv
* @return uv
* Get hourly_uv
*
* @return hourly_uv
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getUv() {
return uv;
public Float getHourly_Uv() {
return hourly_uv;
}
public void setUv(Float uv) {
this.uv = uv;
public void setHourly_Uv(Float hourly_uv) {
this.hourly_uv = hourly_uv;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -762,82 +795,87 @@ public class HourCondition {
return false;
}
HourCondition hourCondition = (HourCondition) o;
return Objects.equals(this.timeEpoch, hourCondition.timeEpoch) &&
Objects.equals(this.time, hourCondition.time) &&
Objects.equals(this.tempC, hourCondition.tempC) &&
Objects.equals(this.tempF, hourCondition.tempF) &&
Objects.equals(this.isDay, hourCondition.isDay) &&
Objects.equals(this.windMph, hourCondition.windMph) &&
Objects.equals(this.windKph, hourCondition.windKph) &&
Objects.equals(this.windDegree, hourCondition.windDegree) &&
Objects.equals(this.windDir, hourCondition.windDir) &&
Objects.equals(this.pressureMb, hourCondition.pressureMb) &&
Objects.equals(this.pressureIn, hourCondition.pressureIn) &&
Objects.equals(this.precipMm, hourCondition.precipMm) &&
Objects.equals(this.precipIn, hourCondition.precipIn) &&
Objects.equals(this.humidity, hourCondition.humidity) &&
Objects.equals(this.cloud, hourCondition.cloud) &&
Objects.equals(this.feelslikeC, hourCondition.feelslikeC) &&
Objects.equals(this.feelslikeF, hourCondition.feelslikeF) &&
Objects.equals(this.windchillC, hourCondition.windchillC) &&
Objects.equals(this.windchillF, hourCondition.windchillF) &&
Objects.equals(this.heatindexC, hourCondition.heatindexC) &&
Objects.equals(this.heatindexF, hourCondition.heatindexF) &&
Objects.equals(this.dewpointC, hourCondition.dewpointC) &&
Objects.equals(this.dewpointF, hourCondition.dewpointF) &&
Objects.equals(this.willItRain, hourCondition.willItRain) &&
Objects.equals(this.chanceOfRain, hourCondition.chanceOfRain) &&
Objects.equals(this.willItSnow, hourCondition.willItSnow) &&
Objects.equals(this.chanceOfSnow, hourCondition.chanceOfSnow) &&
Objects.equals(this.visKm, hourCondition.visKm) &&
Objects.equals(this.visMiles, hourCondition.visMiles) &&
Objects.equals(this.gustMph, hourCondition.gustMph) &&
Objects.equals(this.gustKph, hourCondition.gustKph) &&
Objects.equals(this.uv, hourCondition.uv);
return Objects.equals(this.hourly_timeEpoch, hourCondition.hourly_timeEpoch) &&
Objects.equals(this.hourly_time, hourCondition.hourly_time) &&
Objects.equals(this.hourly_tempC, hourCondition.hourly_tempC) &&
Objects.equals(this.hourly_tempF, hourCondition.hourly_tempF) &&
Objects.equals(this.hourly_isDay, hourCondition.hourly_isDay) &&
Objects.equals(this.hourly_windMph, hourCondition.hourly_windMph) &&
Objects.equals(this.hourly_windKph, hourCondition.hourly_windKph) &&
Objects.equals(this.hourly_windDegree, hourCondition.hourly_windDegree) &&
Objects.equals(this.hourly_windDir, hourCondition.hourly_windDir) &&
Objects.equals(this.hourly_pressureMb, hourCondition.hourly_pressureMb) &&
Objects.equals(this.hourly_pressureIn, hourCondition.hourly_pressureIn) &&
Objects.equals(this.hourly_precipMm, hourCondition.hourly_precipMm) &&
Objects.equals(this.hourly_precipIn, hourCondition.hourly_precipIn) &&
Objects.equals(this.hourly_humidity, hourCondition.hourly_humidity) &&
Objects.equals(this.hourly_cloud, hourCondition.hourly_cloud) &&
Objects.equals(this.hourly_feelslikeC, hourCondition.hourly_feelslikeC) &&
Objects.equals(this.hourly_feelslikeF, hourCondition.hourly_feelslikeF) &&
Objects.equals(this.hourly_windchillC, hourCondition.hourly_windchillC) &&
Objects.equals(this.hourly_windchillF, hourCondition.hourly_windchillF) &&
Objects.equals(this.hourly_heatindexC, hourCondition.hourly_heatindexC) &&
Objects.equals(this.hourly_heatindexF, hourCondition.hourly_heatindexF) &&
Objects.equals(this.hourly_dewpointC, hourCondition.hourly_dewpointC) &&
Objects.equals(this.hourly_dewpointF, hourCondition.hourly_dewpointF) &&
Objects.equals(this.hourly_willItRain, hourCondition.hourly_willItRain) &&
Objects.equals(this.hourly_chanceOfRain, hourCondition.hourly_chanceOfRain) &&
Objects.equals(this.hourly_willItSnow, hourCondition.hourly_willItSnow) &&
Objects.equals(this.hourly_chanceOfSnow, hourCondition.hourly_chanceOfSnow) &&
Objects.equals(this.hourly_visKm, hourCondition.hourly_visKm) &&
Objects.equals(this.hourly_visMiles, hourCondition.hourly_visMiles) &&
Objects.equals(this.hourly_gustMph, hourCondition.hourly_gustMph) &&
Objects.equals(this.hourly_gustKph, hourCondition.hourly_gustKph) &&
Objects.equals(this.hourly_uv, hourCondition.hourly_uv);
}
@Override
public int hashCode() {
return Objects.hash(timeEpoch, time, tempC, tempF, isDay, windMph, windKph, windDegree, windDir, pressureMb, pressureIn, precipMm, precipIn, humidity, cloud, feelslikeC, feelslikeF, windchillC, windchillF, heatindexC, heatindexF, dewpointC, dewpointF, willItRain, chanceOfRain, willItSnow, chanceOfSnow, visKm, visMiles, gustMph, gustKph, uv);
return Objects.hash(hourly_timeEpoch, hourly_time, hourly_tempC, hourly_tempF, hourly_isDay, hourly_windMph,
hourly_windKph, hourly_windDegree, hourly_windDir, hourly_pressureMb, hourly_pressureIn, hourly_precipMm,
hourly_precipIn, hourly_humidity, hourly_cloud, hourly_feelslikeC, hourly_feelslikeF, hourly_windchillC,
hourly_windchillF, hourly_heatindexC, hourly_heatindexF, hourly_dewpointC, hourly_dewpointF, hourly_willItRain,
hourly_chanceOfRain, hourly_willItSnow, hourly_chanceOfSnow, hourly_visKm, hourly_visMiles, hourly_gustMph,
hourly_gustKph, hourly_uv);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HourCondition {\n");
sb.append(" timeEpoch: ").append(toIndentedString(timeEpoch)).append("\n");
sb.append(" time: ").append(toIndentedString(time)).append("\n");
sb.append(" tempC: ").append(toIndentedString(tempC)).append("\n");
sb.append(" tempF: ").append(toIndentedString(tempF)).append("\n");
sb.append(" isDay: ").append(toIndentedString(isDay)).append("\n");
sb.append(" windMph: ").append(toIndentedString(windMph)).append("\n");
sb.append(" windKph: ").append(toIndentedString(windKph)).append("\n");
sb.append(" windDegree: ").append(toIndentedString(windDegree)).append("\n");
sb.append(" windDir: ").append(toIndentedString(windDir)).append("\n");
sb.append(" pressureMb: ").append(toIndentedString(pressureMb)).append("\n");
sb.append(" pressureIn: ").append(toIndentedString(pressureIn)).append("\n");
sb.append(" precipMm: ").append(toIndentedString(precipMm)).append("\n");
sb.append(" precipIn: ").append(toIndentedString(precipIn)).append("\n");
sb.append(" humidity: ").append(toIndentedString(humidity)).append("\n");
sb.append(" cloud: ").append(toIndentedString(cloud)).append("\n");
sb.append(" feelslikeC: ").append(toIndentedString(feelslikeC)).append("\n");
sb.append(" feelslikeF: ").append(toIndentedString(feelslikeF)).append("\n");
sb.append(" windchillC: ").append(toIndentedString(windchillC)).append("\n");
sb.append(" windchillF: ").append(toIndentedString(windchillF)).append("\n");
sb.append(" heatindexC: ").append(toIndentedString(heatindexC)).append("\n");
sb.append(" heatindexF: ").append(toIndentedString(heatindexF)).append("\n");
sb.append(" dewpointC: ").append(toIndentedString(dewpointC)).append("\n");
sb.append(" dewpointF: ").append(toIndentedString(dewpointF)).append("\n");
sb.append(" willItRain: ").append(toIndentedString(willItRain)).append("\n");
sb.append(" chanceOfRain: ").append(toIndentedString(chanceOfRain)).append("\n");
sb.append(" willItSnow: ").append(toIndentedString(willItSnow)).append("\n");
sb.append(" chanceOfSnow: ").append(toIndentedString(chanceOfSnow)).append("\n");
sb.append(" visKm: ").append(toIndentedString(visKm)).append("\n");
sb.append(" visMiles: ").append(toIndentedString(visMiles)).append("\n");
sb.append(" gustMph: ").append(toIndentedString(gustMph)).append("\n");
sb.append(" gustKph: ").append(toIndentedString(gustKph)).append("\n");
sb.append(" uv: ").append(toIndentedString(uv)).append("\n");
sb.append(" hourly_timeEpoch: ").append(toIndentedString(hourly_timeEpoch)).append("\n");
sb.append(" hourly_time: ").append(toIndentedString(hourly_time)).append("\n");
sb.append(" hourly_tempC: ").append(toIndentedString(hourly_tempC)).append("\n");
sb.append(" hourly_tempF: ").append(toIndentedString(hourly_tempF)).append("\n");
sb.append(" hourly_isDay: ").append(toIndentedString(hourly_isDay)).append("\n");
sb.append(" hourly_windMph: ").append(toIndentedString(hourly_windMph)).append("\n");
sb.append(" hourly_windKph: ").append(toIndentedString(hourly_windKph)).append("\n");
sb.append(" hourly_windDegree: ").append(toIndentedString(hourly_windDegree)).append("\n");
sb.append(" hourly_windDir: ").append(toIndentedString(hourly_windDir)).append("\n");
sb.append(" hourly_pressureMb: ").append(toIndentedString(hourly_pressureMb)).append("\n");
sb.append(" hourly_pressureIn: ").append(toIndentedString(hourly_pressureIn)).append("\n");
sb.append(" hourly_precipMm: ").append(toIndentedString(hourly_precipMm)).append("\n");
sb.append(" hourly_precipIn: ").append(toIndentedString(hourly_precipIn)).append("\n");
sb.append(" hourly_humidity: ").append(toIndentedString(hourly_humidity)).append("\n");
sb.append(" hourly_cloud: ").append(toIndentedString(hourly_cloud)).append("\n");
sb.append(" hourly_feelslikeC: ").append(toIndentedString(hourly_feelslikeC)).append("\n");
sb.append(" hourly_feelslikeF: ").append(toIndentedString(hourly_feelslikeF)).append("\n");
sb.append(" hourly_windchillC: ").append(toIndentedString(hourly_windchillC)).append("\n");
sb.append(" hourly_windchillF: ").append(toIndentedString(hourly_windchillF)).append("\n");
sb.append(" hourly_heatindexC: ").append(toIndentedString(hourly_heatindexC)).append("\n");
sb.append(" hourly_heatindexF: ").append(toIndentedString(hourly_heatindexF)).append("\n");
sb.append(" hourly_dewpointC: ").append(toIndentedString(hourly_dewpointC)).append("\n");
sb.append(" hourly_dewpointF: ").append(toIndentedString(hourly_dewpointF)).append("\n");
sb.append(" hourly_willItRain: ").append(toIndentedString(hourly_willItRain)).append("\n");
sb.append(" hourly_chanceOfRain: ").append(toIndentedString(hourly_chanceOfRain)).append("\n");
sb.append(" hourly_willItSnow: ").append(toIndentedString(hourly_willItSnow)).append("\n");
sb.append(" hourly_chanceOfSnow: ").append(toIndentedString(hourly_chanceOfSnow)).append("\n");
sb.append(" hourly_visKm: ").append(toIndentedString(hourly_visKm)).append("\n");
sb.append(" hourly_visMiles: ").append(toIndentedString(hourly_visMiles)).append("\n");
sb.append(" hourly_gustMph: ").append(toIndentedString(hourly_gustMph)).append("\n");
sb.append(" hourly_gustKph: ").append(toIndentedString(hourly_gustKph)).append("\n");
sb.append(" hourly_uv: ").append(toIndentedString(hourly_uv)).append("\n");
sb.append("}");
return sb.toString();
}
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
......@@ -14,8 +17,8 @@ import javax.validation.constraints.*;
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-08T14:34:21.706302463Z[GMT]")
public class InlineResponse200 {
@JsonInclude(Include.NON_NULL)
public class InlineResponse200 {
@JsonProperty("latitude")
private Float latitude = null;
......@@ -56,12 +59,13 @@ public class InlineResponse200 {
/**
* Get latitude
*
* @return latitude
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getLatitude() {
public Float getLatitude() {
return latitude;
}
......@@ -76,12 +80,13 @@ public class InlineResponse200 {
/**
* Get longitude
*
* @return longitude
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getLongitude() {
public Float getLongitude() {
return longitude;
}
......@@ -96,12 +101,13 @@ public class InlineResponse200 {
/**
* Get generationtimeMs
*
* @return generationtimeMs
**/
@Schema(description = "")
@NotNull
@NotNull
public Float getGenerationtimeMs() {
public Float getGenerationtimeMs() {
return generationtimeMs;
}
......@@ -116,12 +122,13 @@ public class InlineResponse200 {
/**
* Get utcOffsetSeconds
*
* @return utcOffsetSeconds
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getUtcOffsetSeconds() {
public Integer getUtcOffsetSeconds() {
return utcOffsetSeconds;
}
......@@ -136,12 +143,13 @@ public class InlineResponse200 {
/**
* Get timezone
*
* @return timezone
**/
@Schema(description = "")
@NotNull
@NotNull
public String getTimezone() {
public String getTimezone() {
return timezone;
}
......@@ -156,12 +164,13 @@ public class InlineResponse200 {
/**
* Get timezoneAbbreviation
*
* @return timezoneAbbreviation
**/
@Schema(description = "")
@NotNull
@NotNull
public String getTimezoneAbbreviation() {
public String getTimezoneAbbreviation() {
return timezoneAbbreviation;
}
......@@ -176,12 +185,13 @@ public class InlineResponse200 {
/**
* Get elevation
*
* @return elevation
**/
@Schema(description = "")
@NotNull
@NotNull
public Integer getElevation() {
public Integer getElevation() {
return elevation;
}
......@@ -196,12 +206,13 @@ public class InlineResponse200 {
/**
* Get hourlyUnits
*
* @return hourlyUnits
**/
@Schema(description = "")
@NotNull
@NotNull
public Object getHourlyUnits() {
public Object getHourlyUnits() {
return hourlyUnits;
}
......@@ -216,12 +227,13 @@ public class InlineResponse200 {
/**
* Get hourly
*
* @return hourly
**/
@Schema(description = "")
@NotNull
@NotNull
public Object getHourly() {
public Object getHourly() {
return hourly;
}
......@@ -236,12 +248,13 @@ public class InlineResponse200 {
/**
* Get dailyUnits
*
* @return dailyUnits
**/
@Schema(description = "")
@NotNull
@NotNull
public Object getDailyUnits() {
public Object getDailyUnits() {
return dailyUnits;
}
......@@ -256,12 +269,13 @@ public class InlineResponse200 {
/**
* Get daily
*
* @return daily
**/
@Schema(description = "")
@NotNull
@NotNull
public Object getDaily() {
public Object getDaily() {
return daily;
}
......@@ -269,7 +283,6 @@ public class InlineResponse200 {
this.daily = daily;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -294,14 +307,15 @@ public class InlineResponse200 {
@Override
public int hashCode() {
return Objects.hash(latitude, longitude, generationtimeMs, utcOffsetSeconds, timezone, timezoneAbbreviation, elevation, hourlyUnits, hourly, dailyUnits, daily);
return Objects.hash(latitude, longitude, generationtimeMs, utcOffsetSeconds, timezone, timezoneAbbreviation,
elevation, hourlyUnits, hourly, dailyUnits, daily);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse200 {\n");
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
sb.append(" generationtimeMs: ").append(toIndentedString(generationtimeMs)).append("\n");
......
......@@ -18,15 +18,14 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class Model200 {
@JsonProperty("location")
private Location location = null;
private Location location = new Location();
@JsonProperty("current")
private Current current = null;
private Current current = new Current();
public Model200 location(Location location) {
this.location = location;
......
......@@ -23,16 +23,16 @@ import javax.validation.constraints.*;
public class Modelforecast {
@JsonProperty("location")
private Location location = null;
private Location location = new Location();
@JsonProperty("current")
private Current current = null;
private Current current = new Current();
@JsonProperty("forecast")
private WeatherResponseForecast forecast = null;
private WeatherResponseForecast forecast = new WeatherResponseForecast();
@JsonProperty("alerts")
private WeatherResponseAlerts alerts = null;
private WeatherResponseAlerts alerts = new WeatherResponseAlerts();
public Modelforecast location(Location location) {
this.location = location;
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.WeatherResponseForecast;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;
......@@ -15,8 +18,8 @@ import javax.validation.constraints.*;
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
public class WeatherResponse {
@JsonInclude(Include.NON_NULL)
public class WeatherResponse {
@JsonProperty("forecast")
private WeatherResponseForecast forecast = null;
......@@ -27,13 +30,14 @@ public class WeatherResponse {
/**
* Get forecast
*
* @return forecast
**/
@Schema(description = "")
@NotNull
@NotNull
@Valid
public WeatherResponseForecast getForecast() {
@Valid
public WeatherResponseForecast getForecast() {
return forecast;
}
......@@ -41,7 +45,6 @@ public class WeatherResponse {
this.forecast = forecast;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -63,7 +66,7 @@ public class WeatherResponse {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponse {\n");
sb.append(" forecast: ").append(toIndentedString(forecast)).append("\n");
sb.append("}");
return sb.toString();
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.Alerts;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
......@@ -17,8 +20,8 @@ import javax.validation.constraints.*;
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T13:05:28.829911948Z[GMT]")
public class WeatherResponseAlerts {
@JsonInclude(Include.NON_NULL)
public class WeatherResponseAlerts {
@JsonProperty("alert")
@Valid
private List<Alerts> alert = null;
......@@ -38,12 +41,13 @@ public class WeatherResponseAlerts {
/**
* Get alert
*
* @return alert
**/
@Schema(description = "")
@NotNull
@Valid
public List<Alerts> getAlert() {
@NotNull
@Valid
public List<Alerts> getAlert() {
return alert;
}
......@@ -51,7 +55,6 @@ public class WeatherResponseAlerts {
this.alert = alert;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -73,7 +76,7 @@ public class WeatherResponseAlerts {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponseAlerts {\n");
sb.append(" alert: ").append(toIndentedString(alert)).append("\n");
sb.append("}");
return sb.toString();
......
......@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.model.ForecastDay;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
......@@ -16,12 +19,11 @@ import javax.validation.constraints.*;
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
public class WeatherResponseForecast {
@JsonInclude(Include.NON_NULL)
public class WeatherResponseForecast {
@JsonProperty("forecastday")
@Valid
private List<ForecastDay> forecastday = null;
private List<ForecastDay> forecastday = new ArrayList<>();
public WeatherResponseForecast forecastday(List<ForecastDay> forecastday) {
this.forecastday = forecastday;
......@@ -38,12 +40,13 @@ public class WeatherResponseForecast {
/**
* Get forecastday
*
* @return forecastday
**/
@Schema(description = "")
@NotNull
@Valid
public List<ForecastDay> getForecastday() {
@NotNull
@Valid
public List<ForecastDay> getForecastday() {
return forecastday;
}
......@@ -51,7 +54,6 @@ public class WeatherResponseForecast {
this.forecastday = forecastday;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
......@@ -73,7 +75,7 @@ public class WeatherResponseForecast {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponseForecast {\n");
sb.append(" forecastday: ").append(toIndentedString(forecastday)).append("\n");
sb.append("}");
return sb.toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment