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

de

parent 5310f102
...@@ -53,7 +53,7 @@ public class CurrentweatherApiController implements CurrentweatherApi { ...@@ -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, @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) { @Parameter(in = ParameterIn.QUERY, description = "filter parameter", schema = @Schema()) @Valid @RequestParam(value = "filter", required = false) String filter) {
try { try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}"; String datafree = "{}";
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate); ApiService apiService = new ApiService(restTemplate);
......
package io.swagger.api; package io.swagger.api;
import io.swagger.model.Modelforecast; import io.swagger.model.ForecastDay;
import io.swagger.model.Modelforecast;
import io.swagger.model.Modelforecast; import io.swagger.model.Modelforecast;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
...@@ -62,7 +61,7 @@ public class ForecastweatherApiController implements ForecastweatherApi { ...@@ -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) { @Parameter(in = ParameterIn.QUERY, description = "filter parameter", required = false, schema = @Schema()) @Valid @RequestParam(value = "filter", required = false) String filter) {
try { try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}"; String datafree = "{}";
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate); ApiService apiService = new ApiService(restTemplate);
...@@ -75,8 +74,891 @@ public class ForecastweatherApiController implements ForecastweatherApi { ...@@ -75,8 +74,891 @@ public class ForecastweatherApiController implements ForecastweatherApi {
ResponseEntity<Modelforecast> response2 = new ResponseEntity<Modelforecast>(objectMapper.readValue( ResponseEntity<Modelforecast> response2 = new ResponseEntity<Modelforecast>(objectMapper.readValue(
datafree, Modelforecast.class), HttpStatus.ACCEPTED); datafree, Modelforecast.class), HttpStatus.ACCEPTED);
String[] filterlist = filter.split(","); 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; return response2;
} catch (IOException e) { } catch (IOException e) {
log.error("Couldn't serialize response for content type application/json", e); log.error("Couldn't serialize response for content type application/json", e);
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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 io.swagger.v3.oas.annotations.media.Schema;
import org.threeten.bp.OffsetDateTime; import org.threeten.bp.OffsetDateTime;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -14,9 +17,9 @@ import javax.validation.constraints.*; ...@@ -14,9 +17,9 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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") @JsonProperty("headline")
private String headline = null; private String headline = null;
...@@ -63,12 +66,13 @@ public class Alerts { ...@@ -63,12 +66,13 @@ public class Alerts {
/** /**
* Get headline * Get headline
*
* @return headline * @return headline
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getHeadline() { public String getHeadline() {
return headline; return headline;
} }
...@@ -83,11 +87,12 @@ public class Alerts { ...@@ -83,11 +87,12 @@ public class Alerts {
/** /**
* Get msgtype * Get msgtype
*
* @return msgtype * @return msgtype
**/ **/
@Schema(description = "") @Schema(description = "")
public String getMsgtype() { public String getMsgtype() {
return msgtype; return msgtype;
} }
...@@ -102,11 +107,12 @@ public class Alerts { ...@@ -102,11 +107,12 @@ public class Alerts {
/** /**
* Get severity * Get severity
*
* @return severity * @return severity
**/ **/
@Schema(description = "") @Schema(description = "")
public String getSeverity() { public String getSeverity() {
return severity; return severity;
} }
...@@ -121,11 +127,12 @@ public class Alerts { ...@@ -121,11 +127,12 @@ public class Alerts {
/** /**
* Get urgency * Get urgency
*
* @return urgency * @return urgency
**/ **/
@Schema(description = "") @Schema(description = "")
public String getUrgency() { public String getUrgency() {
return urgency; return urgency;
} }
...@@ -140,11 +147,12 @@ public class Alerts { ...@@ -140,11 +147,12 @@ public class Alerts {
/** /**
* Get areas * Get areas
*
* @return areas * @return areas
**/ **/
@Schema(description = "") @Schema(description = "")
public String getAreas() { public String getAreas() {
return areas; return areas;
} }
...@@ -159,12 +167,13 @@ public class Alerts { ...@@ -159,12 +167,13 @@ public class Alerts {
/** /**
* Get category * Get category
*
* @return category * @return category
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getCategory() { public String getCategory() {
return category; return category;
} }
...@@ -179,11 +188,12 @@ public class Alerts { ...@@ -179,11 +188,12 @@ public class Alerts {
/** /**
* Get certainty * Get certainty
*
* @return certainty * @return certainty
**/ **/
@Schema(description = "") @Schema(description = "")
public String getCertainty() { public String getCertainty() {
return certainty; return certainty;
} }
...@@ -198,12 +208,13 @@ public class Alerts { ...@@ -198,12 +208,13 @@ public class Alerts {
/** /**
* Get event * Get event
*
* @return event * @return event
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getEvent() { public String getEvent() {
return event; return event;
} }
...@@ -218,11 +229,12 @@ public class Alerts { ...@@ -218,11 +229,12 @@ public class Alerts {
/** /**
* Get note * Get note
*
* @return note * @return note
**/ **/
@Schema(description = "") @Schema(description = "")
public String getNote() { public String getNote() {
return note; return note;
} }
...@@ -237,13 +249,14 @@ public class Alerts { ...@@ -237,13 +249,14 @@ public class Alerts {
/** /**
* Get effective * Get effective
*
* @return effective * @return effective
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public OffsetDateTime getEffective() { public OffsetDateTime getEffective() {
return effective; return effective;
} }
...@@ -258,13 +271,14 @@ public class Alerts { ...@@ -258,13 +271,14 @@ public class Alerts {
/** /**
* Get expires * Get expires
*
* @return expires * @return expires
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public OffsetDateTime getExpires() { public OffsetDateTime getExpires() {
return expires; return expires;
} }
...@@ -279,12 +293,13 @@ public class Alerts { ...@@ -279,12 +293,13 @@ public class Alerts {
/** /**
* Get desc * Get desc
*
* @return desc * @return desc
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getDesc() { public String getDesc() {
return desc; return desc;
} }
...@@ -299,12 +314,13 @@ public class Alerts { ...@@ -299,12 +314,13 @@ public class Alerts {
/** /**
* Get instruction * Get instruction
*
* @return instruction * @return instruction
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getInstruction() { public String getInstruction() {
return instruction; return instruction;
} }
...@@ -312,7 +328,6 @@ public class Alerts { ...@@ -312,7 +328,6 @@ public class Alerts {
this.instruction = instruction; this.instruction = instruction;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -339,14 +354,15 @@ public class Alerts { ...@@ -339,14 +354,15 @@ public class Alerts {
@Override @Override
public int hashCode() { 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 @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class Alerts {\n"); sb.append("class Alerts {\n");
sb.append(" headline: ").append(toIndentedString(headline)).append("\n"); sb.append(" headline: ").append(toIndentedString(headline)).append("\n");
sb.append(" msgtype: ").append(toIndentedString(msgtype)).append("\n"); sb.append(" msgtype: ").append(toIndentedString(msgtype)).append("\n");
sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n");
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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 io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -13,9 +16,9 @@ import javax.validation.constraints.*; ...@@ -13,9 +16,9 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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") @JsonProperty("sunrise")
private String sunrise = null; private String sunrise = null;
...@@ -41,12 +44,13 @@ public class Astro { ...@@ -41,12 +44,13 @@ public class Astro {
/** /**
* Get sunrise * Get sunrise
*
* @return sunrise * @return sunrise
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getSunrise() { public String getSunrise() {
return sunrise; return sunrise;
} }
...@@ -61,12 +65,13 @@ public class Astro { ...@@ -61,12 +65,13 @@ public class Astro {
/** /**
* Get sunset * Get sunset
*
* @return sunset * @return sunset
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getSunset() { public String getSunset() {
return sunset; return sunset;
} }
...@@ -81,12 +86,13 @@ public class Astro { ...@@ -81,12 +86,13 @@ public class Astro {
/** /**
* Get moonrise * Get moonrise
*
* @return moonrise * @return moonrise
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonrise() { public String getMoonrise() {
return moonrise; return moonrise;
} }
...@@ -101,12 +107,13 @@ public class Astro { ...@@ -101,12 +107,13 @@ public class Astro {
/** /**
* Get moonset * Get moonset
*
* @return moonset * @return moonset
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonset() { public String getMoonset() {
return moonset; return moonset;
} }
...@@ -121,12 +128,13 @@ public class Astro { ...@@ -121,12 +128,13 @@ public class Astro {
/** /**
* Get moonPhase * Get moonPhase
*
* @return moonPhase * @return moonPhase
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonPhase() { public String getMoonPhase() {
return moonPhase; return moonPhase;
} }
...@@ -141,12 +149,13 @@ public class Astro { ...@@ -141,12 +149,13 @@ public class Astro {
/** /**
* Get moonIllumination * Get moonIllumination
*
* @return moonIllumination * @return moonIllumination
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getMoonIllumination() { public String getMoonIllumination() {
return moonIllumination; return moonIllumination;
} }
...@@ -154,7 +163,6 @@ public class Astro { ...@@ -154,7 +163,6 @@ public class Astro {
this.moonIllumination = moonIllumination; this.moonIllumination = moonIllumination;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -181,7 +189,7 @@ public class Astro { ...@@ -181,7 +189,7 @@ public class Astro {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class Astro {\n"); sb.append("class Astro {\n");
sb.append(" sunrise: ").append(toIndentedString(sunrise)).append("\n"); sb.append(" sunrise: ").append(toIndentedString(sunrise)).append("\n");
sb.append(" sunset: ").append(toIndentedString(sunset)).append("\n"); sb.append(" sunset: ").append(toIndentedString(sunset)).append("\n");
sb.append(" moonrise: ").append(toIndentedString(moonrise)).append("\n"); sb.append(" moonrise: ").append(toIndentedString(moonrise)).append("\n");
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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 io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -13,9 +16,8 @@ import javax.validation.constraints.*; ...@@ -13,9 +16,8 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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 DayCondition {
public class DayCondition {
@JsonProperty("maxtemp_c") @JsonProperty("maxtemp_c")
private Float maxtempC = null; private Float maxtempC = null;
...@@ -68,7 +70,7 @@ public class DayCondition { ...@@ -68,7 +70,7 @@ public class DayCondition {
private Integer dailyChanceOfSnow = null; private Integer dailyChanceOfSnow = null;
@JsonProperty("uv") @JsonProperty("uv")
private Float uv = null; private Float uv_day = null;
public DayCondition maxtempC(Float maxtempC) { public DayCondition maxtempC(Float maxtempC) {
this.maxtempC = maxtempC; this.maxtempC = maxtempC;
...@@ -77,12 +79,13 @@ public class DayCondition { ...@@ -77,12 +79,13 @@ public class DayCondition {
/** /**
* Get maxtempC * Get maxtempC
*
* @return maxtempC * @return maxtempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxtempC() { public Float getMaxtempC() {
return maxtempC; return maxtempC;
} }
...@@ -97,12 +100,13 @@ public class DayCondition { ...@@ -97,12 +100,13 @@ public class DayCondition {
/** /**
* Get maxtempF * Get maxtempF
*
* @return maxtempF * @return maxtempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxtempF() { public Float getMaxtempF() {
return maxtempF; return maxtempF;
} }
...@@ -117,12 +121,13 @@ public class DayCondition { ...@@ -117,12 +121,13 @@ public class DayCondition {
/** /**
* Get mintempC * Get mintempC
*
* @return mintempC * @return mintempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMintempC() { public Float getMintempC() {
return mintempC; return mintempC;
} }
...@@ -137,12 +142,13 @@ public class DayCondition { ...@@ -137,12 +142,13 @@ public class DayCondition {
/** /**
* Get mintempF * Get mintempF
*
* @return mintempF * @return mintempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMintempF() { public Float getMintempF() {
return mintempF; return mintempF;
} }
...@@ -157,12 +163,13 @@ public class DayCondition { ...@@ -157,12 +163,13 @@ public class DayCondition {
/** /**
* Get avgtempC * Get avgtempC
*
* @return avgtempC * @return avgtempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgtempC() { public Float getAvgtempC() {
return avgtempC; return avgtempC;
} }
...@@ -177,12 +184,13 @@ public class DayCondition { ...@@ -177,12 +184,13 @@ public class DayCondition {
/** /**
* Get avgtempF * Get avgtempF
*
* @return avgtempF * @return avgtempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgtempF() { public Float getAvgtempF() {
return avgtempF; return avgtempF;
} }
...@@ -197,12 +205,13 @@ public class DayCondition { ...@@ -197,12 +205,13 @@ public class DayCondition {
/** /**
* Get maxwindMph * Get maxwindMph
*
* @return maxwindMph * @return maxwindMph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxwindMph() { public Float getMaxwindMph() {
return maxwindMph; return maxwindMph;
} }
...@@ -217,12 +226,13 @@ public class DayCondition { ...@@ -217,12 +226,13 @@ public class DayCondition {
/** /**
* Get maxwindKph * Get maxwindKph
*
* @return maxwindKph * @return maxwindKph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getMaxwindKph() { public Float getMaxwindKph() {
return maxwindKph; return maxwindKph;
} }
...@@ -237,12 +247,13 @@ public class DayCondition { ...@@ -237,12 +247,13 @@ public class DayCondition {
/** /**
* Get totalprecipMm * Get totalprecipMm
*
* @return totalprecipMm * @return totalprecipMm
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getTotalprecipMm() { public Float getTotalprecipMm() {
return totalprecipMm; return totalprecipMm;
} }
...@@ -257,12 +268,13 @@ public class DayCondition { ...@@ -257,12 +268,13 @@ public class DayCondition {
/** /**
* Get totalprecipIn * Get totalprecipIn
*
* @return totalprecipIn * @return totalprecipIn
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getTotalprecipIn() { public Float getTotalprecipIn() {
return totalprecipIn; return totalprecipIn;
} }
...@@ -277,12 +289,13 @@ public class DayCondition { ...@@ -277,12 +289,13 @@ public class DayCondition {
/** /**
* Get avgvisKm * Get avgvisKm
*
* @return avgvisKm * @return avgvisKm
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgvisKm() { public Float getAvgvisKm() {
return avgvisKm; return avgvisKm;
} }
...@@ -297,12 +310,13 @@ public class DayCondition { ...@@ -297,12 +310,13 @@ public class DayCondition {
/** /**
* Get avgvisMiles * Get avgvisMiles
*
* @return avgvisMiles * @return avgvisMiles
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getAvgvisMiles() { public Float getAvgvisMiles() {
return avgvisMiles; return avgvisMiles;
} }
...@@ -317,12 +331,13 @@ public class DayCondition { ...@@ -317,12 +331,13 @@ public class DayCondition {
/** /**
* Get avghumidity * Get avghumidity
*
* @return avghumidity * @return avghumidity
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getAvghumidity() { public Integer getAvghumidity() {
return avghumidity; return avghumidity;
} }
...@@ -337,12 +352,13 @@ public class DayCondition { ...@@ -337,12 +352,13 @@ public class DayCondition {
/** /**
* Get dailyWillItRain * Get dailyWillItRain
*
* @return dailyWillItRain * @return dailyWillItRain
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyWillItRain() { public Integer getDailyWillItRain() {
return dailyWillItRain; return dailyWillItRain;
} }
...@@ -357,12 +373,13 @@ public class DayCondition { ...@@ -357,12 +373,13 @@ public class DayCondition {
/** /**
* Get dailyChanceOfRain * Get dailyChanceOfRain
*
* @return dailyChanceOfRain * @return dailyChanceOfRain
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyChanceOfRain() { public Integer getDailyChanceOfRain() {
return dailyChanceOfRain; return dailyChanceOfRain;
} }
...@@ -377,12 +394,13 @@ public class DayCondition { ...@@ -377,12 +394,13 @@ public class DayCondition {
/** /**
* Get dailyWillItSnow * Get dailyWillItSnow
*
* @return dailyWillItSnow * @return dailyWillItSnow
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyWillItSnow() { public Integer getDailyWillItSnow() {
return dailyWillItSnow; return dailyWillItSnow;
} }
...@@ -397,12 +415,13 @@ public class DayCondition { ...@@ -397,12 +415,13 @@ public class DayCondition {
/** /**
* Get dailyChanceOfSnow * Get dailyChanceOfSnow
*
* @return dailyChanceOfSnow * @return dailyChanceOfSnow
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDailyChanceOfSnow() { public Integer getDailyChanceOfSnow() {
return dailyChanceOfSnow; return dailyChanceOfSnow;
} }
...@@ -410,27 +429,27 @@ public class DayCondition { ...@@ -410,27 +429,27 @@ public class DayCondition {
this.dailyChanceOfSnow = dailyChanceOfSnow; this.dailyChanceOfSnow = dailyChanceOfSnow;
} }
public DayCondition uv(Float uv) { public DayCondition uv_day(Float uv_day) {
this.uv = uv; this.uv_day = uv_day;
return this; return this;
} }
/** /**
* Get uv * Get uv_day
* @return uv *
* @return uv_day
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getUv() { public Float getUv_day() {
return uv; return uv_day;
} }
public void setUv(Float uv) { public void setUv_day(Float uv_day) {
this.uv = uv; this.uv_day = uv_day;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -457,19 +476,21 @@ public class DayCondition { ...@@ -457,19 +476,21 @@ public class DayCondition {
Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) && Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) &&
Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) && Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) &&
Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) && Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) &&
Objects.equals(this.uv, dayCondition.uv); Objects.equals(this.uv_day, dayCondition.uv_day);
} }
@Override @Override
public int hashCode() { 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 @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class DayCondition {\n"); sb.append("class DayCondition {\n");
sb.append(" maxtempC: ").append(toIndentedString(maxtempC)).append("\n"); sb.append(" maxtempC: ").append(toIndentedString(maxtempC)).append("\n");
sb.append(" maxtempF: ").append(toIndentedString(maxtempF)).append("\n"); sb.append(" maxtempF: ").append(toIndentedString(maxtempF)).append("\n");
sb.append(" mintempC: ").append(toIndentedString(mintempC)).append("\n"); sb.append(" mintempC: ").append(toIndentedString(mintempC)).append("\n");
...@@ -487,7 +508,7 @@ public class DayCondition { ...@@ -487,7 +508,7 @@ public class DayCondition {
sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n"); sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n");
sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n"); sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n");
sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).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("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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.Astro;
import io.swagger.model.DayCondition; import io.swagger.model.DayCondition;
import io.swagger.model.HourCondition; import io.swagger.model.HourCondition;
...@@ -18,9 +21,8 @@ import javax.validation.constraints.*; ...@@ -18,9 +21,8 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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 ForecastDay {
public class ForecastDay {
@JsonProperty("date") @JsonProperty("date")
private String date = null; private String date = null;
...@@ -28,10 +30,10 @@ public class ForecastDay { ...@@ -28,10 +30,10 @@ public class ForecastDay {
private Integer dateEpoch = null; private Integer dateEpoch = null;
@JsonProperty("day") @JsonProperty("day")
private DayCondition day = null; private DayCondition day = new DayCondition();
@JsonProperty("astro") @JsonProperty("astro")
private Astro astro = null; private Astro astro = new Astro();
@JsonProperty("hour") @JsonProperty("hour")
@Valid @Valid
...@@ -44,12 +46,13 @@ public class ForecastDay { ...@@ -44,12 +46,13 @@ public class ForecastDay {
/** /**
* Get date * Get date
*
* @return date * @return date
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getDate() { public String getDate() {
return date; return date;
} }
...@@ -64,12 +67,13 @@ public class ForecastDay { ...@@ -64,12 +67,13 @@ public class ForecastDay {
/** /**
* Get dateEpoch * Get dateEpoch
*
* @return dateEpoch * @return dateEpoch
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getDateEpoch() { public Integer getDateEpoch() {
return dateEpoch; return dateEpoch;
} }
...@@ -84,13 +88,14 @@ public class ForecastDay { ...@@ -84,13 +88,14 @@ public class ForecastDay {
/** /**
* Get day * Get day
*
* @return day * @return day
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public DayCondition getDay() { public DayCondition getDay() {
return day; return day;
} }
...@@ -105,13 +110,14 @@ public class ForecastDay { ...@@ -105,13 +110,14 @@ public class ForecastDay {
/** /**
* Get astro * Get astro
*
* @return astro * @return astro
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public Astro getAstro() { public Astro getAstro() {
return astro; return astro;
} }
...@@ -134,12 +140,13 @@ public class ForecastDay { ...@@ -134,12 +140,13 @@ public class ForecastDay {
/** /**
* Get hour * Get hour
*
* @return hour * @return hour
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public List<HourCondition> getHour() { public List<HourCondition> getHour() {
return hour; return hour;
} }
...@@ -147,7 +154,6 @@ public class ForecastDay { ...@@ -147,7 +154,6 @@ public class ForecastDay {
this.hour = hour; this.hour = hour;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -173,7 +179,7 @@ public class ForecastDay { ...@@ -173,7 +179,7 @@ public class ForecastDay {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class ForecastDay {\n"); sb.append("class ForecastDay {\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" dateEpoch: ").append(toIndentedString(dateEpoch)).append("\n"); sb.append(" dateEpoch: ").append(toIndentedString(dateEpoch)).append("\n");
sb.append(" day: ").append(toIndentedString(day)).append("\n"); sb.append(" day: ").append(toIndentedString(day)).append("\n");
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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 io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -13,746 +16,776 @@ import javax.validation.constraints.*; ...@@ -13,746 +16,776 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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 HourCondition {
public class HourCondition {
@JsonProperty("time_epoch") @JsonProperty("time_epoch")
private Integer timeEpoch = null; private Integer hourly_timeEpoch = null;
@JsonProperty("time") @JsonProperty("time")
private String time = null; private String hourly_time = null;
@JsonProperty("temp_c") @JsonProperty("temp_c")
private Float tempC = null; private Float hourly_tempC = null;
@JsonProperty("temp_f") @JsonProperty("temp_f")
private Float tempF = null; private Float hourly_tempF = null;
@JsonProperty("is_day") @JsonProperty("is_day")
private Integer isDay = null; private Integer hourly_isDay = null;
@JsonProperty("wind_mph") @JsonProperty("wind_mph")
private Float windMph = null; private Float hourly_windMph = null;
@JsonProperty("wind_kph") @JsonProperty("wind_kph")
private Float windKph = null; private Float hourly_windKph = null;
@JsonProperty("wind_degree") @JsonProperty("wind_degree")
private Integer windDegree = null; private Integer hourly_windDegree = null;
@JsonProperty("wind_dir") @JsonProperty("wind_dir")
private String windDir = null; private String hourly_windDir = null;
@JsonProperty("pressure_mb") @JsonProperty("pressure_mb")
private Float pressureMb = null; private Float hourly_pressureMb = null;
@JsonProperty("pressure_in") @JsonProperty("pressure_in")
private Float pressureIn = null; private Float hourly_pressureIn = null;
@JsonProperty("precip_mm") @JsonProperty("precip_mm")
private Float precipMm = null; private Float hourly_precipMm = null;
@JsonProperty("precip_in") @JsonProperty("precip_in")
private Float precipIn = null; private Float hourly_precipIn = null;
@JsonProperty("humidity") @JsonProperty("humidity")
private Integer humidity = null; private Integer hourly_humidity = null;
@JsonProperty("cloud") @JsonProperty("cloud")
private Integer cloud = null; private Integer hourly_cloud = null;
@JsonProperty("feelslike_c") @JsonProperty("feelslike_c")
private Float feelslikeC = null; private Float hourly_feelslikeC = null;
@JsonProperty("feelslike_f") @JsonProperty("feelslike_f")
private Float feelslikeF = null; private Float hourly_feelslikeF = null;
@JsonProperty("windchill_c") @JsonProperty("windchill_c")
private Float windchillC = null; private Float hourly_windchillC = null;
@JsonProperty("windchill_f") @JsonProperty("windchill_f")
private Float windchillF = null; private Float hourly_windchillF = null;
@JsonProperty("heatindex_c") @JsonProperty("heatindex_c")
private Float heatindexC = null; private Float hourly_heatindexC = null;
@JsonProperty("heatindex_f") @JsonProperty("heatindex_f")
private Float heatindexF = null; private Float hourly_heatindexF = null;
@JsonProperty("dewpoint_c") @JsonProperty("dewpoint_c")
private Float dewpointC = null; private Float hourly_dewpointC = null;
@JsonProperty("dewpoint_f") @JsonProperty("dewpoint_f")
private Float dewpointF = null; private Float hourly_dewpointF = null;
@JsonProperty("will_it_rain") @JsonProperty("will_it_rain")
private Integer willItRain = null; private Integer hourly_willItRain = null;
@JsonProperty("chance_of_rain") @JsonProperty("chance_of_rain")
private Integer chanceOfRain = null; private Integer hourly_chanceOfRain = null;
@JsonProperty("will_it_snow") @JsonProperty("will_it_snow")
private Integer willItSnow = null; private Integer hourly_willItSnow = null;
@JsonProperty("chance_of_snow") @JsonProperty("chance_of_snow")
private Integer chanceOfSnow = null; private Integer hourly_chanceOfSnow = null;
@JsonProperty("vis_km") @JsonProperty("vis_km")
private Float visKm = null; private Float hourly_visKm = null;
@JsonProperty("vis_miles") @JsonProperty("vis_miles")
private Float visMiles = null; private Float hourly_visMiles = null;
@JsonProperty("gust_mph") @JsonProperty("gust_mph")
private Float gustMph = null; private Float hourly_gustMph = null;
@JsonProperty("gust_kph") @JsonProperty("gust_kph")
private Float gustKph = null; private Float hourly_gustKph = null;
@JsonProperty("uv") @JsonProperty("uv")
private Float uv = null; private Float hourly_uv = null;
public HourCondition timeEpoch(Integer timeEpoch) { public HourCondition hourly_timeEpoch(Integer hourly_timeEpoch) {
this.timeEpoch = timeEpoch; this.hourly_timeEpoch = hourly_timeEpoch;
return this; return this;
} }
/** /**
* Get timeEpoch * Get hourly_timeEpoch
* @return timeEpoch *
* @return hourly_timeEpoch
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getTimeEpoch() { public Integer getHourly_TimeEpoch() {
return timeEpoch; return hourly_timeEpoch;
} }
public void setTimeEpoch(Integer timeEpoch) { public void setHourly_TimeEpoch(Integer hourly_timeEpoch) {
this.timeEpoch = timeEpoch; this.hourly_timeEpoch = hourly_timeEpoch;
} }
public HourCondition time(String time) { public HourCondition hourly_time(String hourly_time) {
this.time = time; this.hourly_time = hourly_time;
return this; return this;
} }
/** /**
* Get time * Get hourly_time
* @return time *
* @return hourly_time
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getTime() { public String getHourly_Time() {
return time; return hourly_time;
} }
public void setTime(String time) { public void setHourly_Time(String hourly_time) {
this.time = time; this.hourly_time = hourly_time;
} }
public HourCondition tempC(Float tempC) { public HourCondition hourly_tempC(Float hourly_tempC) {
this.tempC = tempC; this.hourly_tempC = hourly_tempC;
return this; return this;
} }
/** /**
* Get tempC * Get hourly_tempC
* @return tempC *
* @return hourly_tempC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getTempC() { public Float getHourly_TempC() {
return tempC; return hourly_tempC;
} }
public void setTempC(Float tempC) { public void setHourly_TempC(Float hourly_tempC) {
this.tempC = tempC; this.hourly_tempC = hourly_tempC;
} }
public HourCondition tempF(Float tempF) { public HourCondition hourly_tempF(Float hourly_tempF) {
this.tempF = tempF; this.hourly_tempF = hourly_tempF;
return this; return this;
} }
/** /**
* Get tempF * Get hourly_tempF
* @return tempF *
* @return hourly_tempF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getTempF() { public Float getHourly_TempF() {
return tempF; return hourly_tempF;
} }
public void setTempF(Float tempF) { public void setHourly_TempF(Float hourly_tempF) {
this.tempF = tempF; this.hourly_tempF = hourly_tempF;
} }
public HourCondition isDay(Integer isDay) { public HourCondition hourly_isDay(Integer hourly_isDay) {
this.isDay = isDay; this.hourly_isDay = hourly_isDay;
return this; return this;
} }
/** /**
* Get isDay * Get hourly_isDay
* @return isDay *
* @return hourly_isDay
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getIsDay() { public Integer getHourly_IsDay() {
return isDay; return hourly_isDay;
} }
public void setIsDay(Integer isDay) { public void setHourly_IsDay(Integer hourly_isDay) {
this.isDay = isDay; this.hourly_isDay = hourly_isDay;
} }
public HourCondition windMph(Float windMph) { public HourCondition hourly_windMph(Float hourly_windMph) {
this.windMph = windMph; this.hourly_windMph = hourly_windMph;
return this; return this;
} }
/** /**
* Get windMph * Get hourly_windMph
* @return windMph *
* @return hourly_windMph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getWindMph() { public Float getHourly_WindMph() {
return windMph; return hourly_windMph;
} }
public void setWindMph(Float windMph) { public void setHourly_WindMph(Float hourly_windMph) {
this.windMph = windMph; this.hourly_windMph = hourly_windMph;
} }
public HourCondition windKph(Float windKph) { public HourCondition hourly_windKph(Float hourly_windKph) {
this.windKph = windKph; this.hourly_windKph = hourly_windKph;
return this; return this;
} }
/** /**
* Get windKph * Get hourly_windKph
* @return windKph *
* @return hourly_windKph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getWindKph() { public Float getHourly_WindKph() {
return windKph; return hourly_windKph;
} }
public void setWindKph(Float windKph) { public void setHourly_WindKph(Float hourly_windKph) {
this.windKph = windKph; this.hourly_windKph = hourly_windKph;
} }
public HourCondition windDegree(Integer windDegree) { public HourCondition hourly_windDegree(Integer hourly_windDegree) {
this.windDegree = windDegree; this.hourly_windDegree = hourly_windDegree;
return this; return this;
} }
/** /**
* Get windDegree * Get hourly_windDegree
* @return windDegree *
* @return hourly_windDegree
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getWindDegree() { public Integer getHourly_WindDegree() {
return windDegree; return hourly_windDegree;
} }
public void setWindDegree(Integer windDegree) { public void setHourly_WindDegree(Integer hourly_windDegree) {
this.windDegree = windDegree; this.hourly_windDegree = hourly_windDegree;
} }
public HourCondition windDir(String windDir) { public HourCondition hourly_windDir(String hourly_windDir) {
this.windDir = windDir; this.hourly_windDir = hourly_windDir;
return this; return this;
} }
/** /**
* Get windDir * Get hourly_windDir
* @return windDir *
* @return hourly_windDir
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getWindDir() { public String getHourly_WindDir() {
return windDir; return hourly_windDir;
} }
public void setWindDir(String windDir) { public void setHourly_WindDir(String hourly_windDir) {
this.windDir = windDir; this.hourly_windDir = hourly_windDir;
} }
public HourCondition pressureMb(Float pressureMb) { public HourCondition hourly_pressureMb(Float hourly_pressureMb) {
this.pressureMb = pressureMb; this.hourly_pressureMb = hourly_pressureMb;
return this; return this;
} }
/** /**
* Get pressureMb * Get hourly_pressureMb
* @return pressureMb *
* @return hourly_pressureMb
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getPressureMb() { public Float getHourly_PressureMb() {
return pressureMb; return hourly_pressureMb;
} }
public void setPressureMb(Float pressureMb) { public void setHourly_PressureMb(Float hourly_pressureMb) {
this.pressureMb = pressureMb; this.hourly_pressureMb = hourly_pressureMb;
} }
public HourCondition pressureIn(Float pressureIn) { public HourCondition hourly_pressureIn(Float hourly_pressureIn) {
this.pressureIn = pressureIn; this.hourly_pressureIn = hourly_pressureIn;
return this; return this;
} }
/** /**
* Get pressureIn * Get hourly_pressureIn
* @return pressureIn *
* @return hourly_pressureIn
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getPressureIn() { public Float getHourly_PressureIn() {
return pressureIn; return hourly_pressureIn;
} }
public void setPressureIn(Float pressureIn) { public void setHourly_PressureIn(Float hourly_pressureIn) {
this.pressureIn = pressureIn; this.hourly_pressureIn = hourly_pressureIn;
} }
public HourCondition precipMm(Float precipMm) { public HourCondition hourly_precipMm(Float hourly_precipMm) {
this.precipMm = precipMm; this.hourly_precipMm = hourly_precipMm;
return this; return this;
} }
/** /**
* Get precipMm * Get hourly_precipMm
* @return precipMm *
* @return hourly_precipMm
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getPrecipMm() { public Float getHourly_PrecipMm() {
return precipMm; return hourly_precipMm;
} }
public void setPrecipMm(Float precipMm) { public void setHourly_PrecipMm(Float hourly_precipMm) {
this.precipMm = precipMm; this.hourly_precipMm = hourly_precipMm;
} }
public HourCondition precipIn(Float precipIn) { public HourCondition hourly_precipIn(Float hourly_precipIn) {
this.precipIn = precipIn; this.hourly_precipIn = hourly_precipIn;
return this; return this;
} }
/** /**
* Get precipIn * Get hourly_precipIn
* @return precipIn *
* @return hourly_precipIn
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getPrecipIn() { public Float getHourly_PrecipIn() {
return precipIn; return hourly_precipIn;
} }
public void setPrecipIn(Float precipIn) { public void setHourly_PrecipIn(Float hourly_precipIn) {
this.precipIn = precipIn; this.hourly_precipIn = hourly_precipIn;
} }
public HourCondition humidity(Integer humidity) { public HourCondition hourly_humidity(Integer hourly_humidity) {
this.humidity = humidity; this.hourly_humidity = hourly_humidity;
return this; return this;
} }
/** /**
* Get humidity * Get hourly_humidity
* @return humidity *
* @return hourly_humidity
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getHumidity() { public Integer getHourly_Humidity() {
return humidity; return hourly_humidity;
} }
public void setHumidity(Integer humidity) { public void setHourly_Humidity(Integer hourly_humidity) {
this.humidity = humidity; this.hourly_humidity = hourly_humidity;
} }
public HourCondition cloud(Integer cloud) { public HourCondition hourly_cloud(Integer hourly_cloud) {
this.cloud = cloud; this.hourly_cloud = hourly_cloud;
return this; return this;
} }
/** /**
* Get cloud * Get hourly_cloud
* @return cloud *
* @return hourly_cloud
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getCloud() { public Integer getHourly_Cloud() {
return cloud; return hourly_cloud;
} }
public void setCloud(Integer cloud) { public void setHourly_Cloud(Integer hourly_cloud) {
this.cloud = cloud; this.hourly_cloud = hourly_cloud;
} }
public HourCondition feelslikeC(Float feelslikeC) { public HourCondition hourly_feelslikeC(Float hourly_feelslikeC) {
this.feelslikeC = feelslikeC; this.hourly_feelslikeC = hourly_feelslikeC;
return this; return this;
} }
/** /**
* Get feelslikeC * Get hourly_feelslikeC
* @return feelslikeC *
* @return hourly_feelslikeC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getFeelslikeC() { public Float getHourly_FeelslikeC() {
return feelslikeC; return hourly_feelslikeC;
} }
public void setFeelslikeC(Float feelslikeC) { public void setHourly_FeelslikeC(Float hourly_feelslikeC) {
this.feelslikeC = feelslikeC; this.hourly_feelslikeC = hourly_feelslikeC;
} }
public HourCondition feelslikeF(Float feelslikeF) { public HourCondition hourly_feelslikeF(Float hourly_feelslikeF) {
this.feelslikeF = feelslikeF; this.hourly_feelslikeF = hourly_feelslikeF;
return this; return this;
} }
/** /**
* Get feelslikeF * Get hourly_feelslikeF
* @return feelslikeF *
* @return hourly_feelslikeF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getFeelslikeF() { public Float getHourly_FeelslikeF() {
return feelslikeF; return hourly_feelslikeF;
} }
public void setFeelslikeF(Float feelslikeF) { public void setHourly_FeelslikeF(Float hourly_feelslikeF) {
this.feelslikeF = feelslikeF; this.hourly_feelslikeF = hourly_feelslikeF;
} }
public HourCondition windchillC(Float windchillC) { public HourCondition hourly_windchillC(Float hourly_windchillC) {
this.windchillC = windchillC; this.hourly_windchillC = hourly_windchillC;
return this; return this;
} }
/** /**
* Get windchillC * Get hourly_windchillC
* @return windchillC *
* @return hourly_windchillC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getWindchillC() { public Float getHourly_WindchillC() {
return windchillC; return hourly_windchillC;
} }
public void setWindchillC(Float windchillC) { public void setHourly_WindchillC(Float hourly_windchillC) {
this.windchillC = windchillC; this.hourly_windchillC = hourly_windchillC;
} }
public HourCondition windchillF(Float windchillF) { public HourCondition hourly_windchillF(Float hourly_windchillF) {
this.windchillF = windchillF; this.hourly_windchillF = hourly_windchillF;
return this; return this;
} }
/** /**
* Get windchillF * Get hourly_windchillF
* @return windchillF *
* @return hourly_windchillF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getWindchillF() { public Float getHourly_WindchillF() {
return windchillF; return hourly_windchillF;
} }
public void setWindchillF(Float windchillF) { public void setHourly_WindchillF(Float hourly_windchillF) {
this.windchillF = windchillF; this.hourly_windchillF = hourly_windchillF;
} }
public HourCondition heatindexC(Float heatindexC) { public HourCondition hourly_heatindexC(Float hourly_heatindexC) {
this.heatindexC = heatindexC; this.hourly_heatindexC = hourly_heatindexC;
return this; return this;
} }
/** /**
* Get heatindexC * Get hourly_heatindexC
* @return heatindexC *
* @return hourly_heatindexC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getHeatindexC() { public Float getHourly_HeatindexC() {
return heatindexC; return hourly_heatindexC;
} }
public void setHeatindexC(Float heatindexC) { public void setHourly_HeatindexC(Float hourly_heatindexC) {
this.heatindexC = heatindexC; this.hourly_heatindexC = hourly_heatindexC;
} }
public HourCondition heatindexF(Float heatindexF) { public HourCondition hourly_heatindexF(Float hourly_heatindexF) {
this.heatindexF = heatindexF; this.hourly_heatindexF = hourly_heatindexF;
return this; return this;
} }
/** /**
* Get heatindexF * Get hourly_heatindexF
* @return heatindexF *
* @return hourly_heatindexF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getHeatindexF() { public Float getHourly_HeatindexF() {
return heatindexF; return hourly_heatindexF;
} }
public void setHeatindexF(Float heatindexF) { public void setHourly_HeatindexF(Float hourly_heatindexF) {
this.heatindexF = heatindexF; this.hourly_heatindexF = hourly_heatindexF;
} }
public HourCondition dewpointC(Float dewpointC) { public HourCondition hourly_dewpointC(Float hourly_dewpointC) {
this.dewpointC = dewpointC; this.hourly_dewpointC = hourly_dewpointC;
return this; return this;
} }
/** /**
* Get dewpointC * Get hourly_dewpointC
* @return dewpointC *
* @return hourly_dewpointC
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getDewpointC() { public Float getHourly_DewpointC() {
return dewpointC; return hourly_dewpointC;
} }
public void setDewpointC(Float dewpointC) { public void setHourly_DewpointC(Float hourly_dewpointC) {
this.dewpointC = dewpointC; this.hourly_dewpointC = hourly_dewpointC;
} }
public HourCondition dewpointF(Float dewpointF) { public HourCondition hourly_dewpointF(Float hourly_dewpointF) {
this.dewpointF = dewpointF; this.hourly_dewpointF = hourly_dewpointF;
return this; return this;
} }
/** /**
* Get dewpointF * Get hourly_dewpointF
* @return dewpointF *
* @return hourly_dewpointF
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getDewpointF() { public Float getHourly_DewpointF() {
return dewpointF; return hourly_dewpointF;
} }
public void setDewpointF(Float dewpointF) { public void setHourly_DewpointF(Float hourly_dewpointF) {
this.dewpointF = dewpointF; this.hourly_dewpointF = hourly_dewpointF;
} }
public HourCondition willItRain(Integer willItRain) { public HourCondition hourly_willItRain(Integer hourly_willItRain) {
this.willItRain = willItRain; this.hourly_willItRain = hourly_willItRain;
return this; return this;
} }
/** /**
* Get willItRain * Get hourly_willItRain
* @return willItRain *
* @return hourly_willItRain
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getWillItRain() { public Integer getHourly_WillItRain() {
return willItRain; return hourly_willItRain;
} }
public void setWillItRain(Integer willItRain) { public void setHourly_WillItRain(Integer hourly_willItRain) {
this.willItRain = willItRain; this.hourly_willItRain = hourly_willItRain;
} }
public HourCondition chanceOfRain(Integer chanceOfRain) { public HourCondition hourly_chanceOfRain(Integer hourly_chanceOfRain) {
this.chanceOfRain = chanceOfRain; this.hourly_chanceOfRain = hourly_chanceOfRain;
return this; return this;
} }
/** /**
* Get chanceOfRain * Get hourly_chanceOfRain
* @return chanceOfRain *
* @return hourly_chanceOfRain
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getChanceOfRain() { public Integer getHourly_ChanceOfRain() {
return chanceOfRain; return hourly_chanceOfRain;
} }
public void setChanceOfRain(Integer chanceOfRain) { public void setHourly_ChanceOfRain(Integer hourly_chanceOfRain) {
this.chanceOfRain = chanceOfRain; this.hourly_chanceOfRain = hourly_chanceOfRain;
} }
public HourCondition willItSnow(Integer willItSnow) { public HourCondition hourly_willItSnow(Integer hourly_willItSnow) {
this.willItSnow = willItSnow; this.hourly_willItSnow = hourly_willItSnow;
return this; return this;
} }
/** /**
* Get willItSnow * Get hourly_willItSnow
* @return willItSnow *
* @return hourly_willItSnow
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getWillItSnow() { public Integer getHourly_WillItSnow() {
return willItSnow; return hourly_willItSnow;
} }
public void setWillItSnow(Integer willItSnow) { public void setHourly_WillItSnow(Integer hourly_willItSnow) {
this.willItSnow = willItSnow; this.hourly_willItSnow = hourly_willItSnow;
} }
public HourCondition chanceOfSnow(Integer chanceOfSnow) { public HourCondition hourly_chanceOfSnow(Integer hourly_chanceOfSnow) {
this.chanceOfSnow = chanceOfSnow; this.hourly_chanceOfSnow = hourly_chanceOfSnow;
return this; return this;
} }
/** /**
* Get chanceOfSnow * Get hourly_chanceOfSnow
* @return chanceOfSnow *
* @return hourly_chanceOfSnow
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getChanceOfSnow() { public Integer getHourly_ChanceOfSnow() {
return chanceOfSnow; return hourly_chanceOfSnow;
} }
public void setChanceOfSnow(Integer chanceOfSnow) { public void setHourly_ChanceOfSnow(Integer hourly_chanceOfSnow) {
this.chanceOfSnow = chanceOfSnow; this.hourly_chanceOfSnow = hourly_chanceOfSnow;
} }
public HourCondition visKm(Float visKm) { public HourCondition hourly_visKm(Float hourly_visKm) {
this.visKm = visKm; this.hourly_visKm = hourly_visKm;
return this; return this;
} }
/** /**
* Get visKm * Get hourly_visKm
* @return visKm *
* @return hourly_visKm
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getVisKm() { public Float getHourly_VisKm() {
return visKm; return hourly_visKm;
} }
public void setVisKm(Float visKm) { public void setHourly_VisKm(Float hourly_visKm) {
this.visKm = visKm; this.hourly_visKm = hourly_visKm;
} }
public HourCondition visMiles(Float visMiles) { public HourCondition hourly_visMiles(Float hourly_visMiles) {
this.visMiles = visMiles; this.hourly_visMiles = hourly_visMiles;
return this; return this;
} }
/** /**
* Get visMiles * Get hourly_visMiles
* @return visMiles *
* @return hourly_visMiles
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getVisMiles() { public Float getHourly_VisMiles() {
return visMiles; return hourly_visMiles;
} }
public void setVisMiles(Float visMiles) { public void setHourly_VisMiles(Float hourly_visMiles) {
this.visMiles = visMiles; this.hourly_visMiles = hourly_visMiles;
} }
public HourCondition gustMph(Float gustMph) { public HourCondition hourly_gustMph(Float hourly_gustMph) {
this.gustMph = gustMph; this.hourly_gustMph = hourly_gustMph;
return this; return this;
} }
/** /**
* Get gustMph * Get hourly_gustMph
* @return gustMph *
* @return hourly_gustMph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getGustMph() { public Float getHourly_GustMph() {
return gustMph; return hourly_gustMph;
} }
public void setGustMph(Float gustMph) { public void setHourly_GustMph(Float hourly_gustMph) {
this.gustMph = gustMph; this.hourly_gustMph = hourly_gustMph;
} }
public HourCondition gustKph(Float gustKph) { public HourCondition hourly_gustKph(Float hourly_gustKph) {
this.gustKph = gustKph; this.hourly_gustKph = hourly_gustKph;
return this; return this;
} }
/** /**
* Get gustKph * Get hourly_gustKph
* @return gustKph *
* @return hourly_gustKph
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getGustKph() { public Float getHourly_GustKph() {
return gustKph; return hourly_gustKph;
} }
public void setGustKph(Float gustKph) { public void setHourly_GustKph(Float hourly_gustKph) {
this.gustKph = gustKph; this.hourly_gustKph = hourly_gustKph;
} }
public HourCondition uv(Float uv) { public HourCondition hourly_uv(Float hourly_uv) {
this.uv = uv; this.hourly_uv = hourly_uv;
return this; return this;
} }
/** /**
* Get uv * Get hourly_uv
* @return uv *
* @return hourly_uv
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getUv() { public Float getHourly_Uv() {
return uv; return hourly_uv;
} }
public void setUv(Float uv) { public void setHourly_Uv(Float hourly_uv) {
this.uv = uv; this.hourly_uv = hourly_uv;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -762,82 +795,87 @@ public class HourCondition { ...@@ -762,82 +795,87 @@ public class HourCondition {
return false; return false;
} }
HourCondition hourCondition = (HourCondition) o; HourCondition hourCondition = (HourCondition) o;
return Objects.equals(this.timeEpoch, hourCondition.timeEpoch) && return Objects.equals(this.hourly_timeEpoch, hourCondition.hourly_timeEpoch) &&
Objects.equals(this.time, hourCondition.time) && Objects.equals(this.hourly_time, hourCondition.hourly_time) &&
Objects.equals(this.tempC, hourCondition.tempC) && Objects.equals(this.hourly_tempC, hourCondition.hourly_tempC) &&
Objects.equals(this.tempF, hourCondition.tempF) && Objects.equals(this.hourly_tempF, hourCondition.hourly_tempF) &&
Objects.equals(this.isDay, hourCondition.isDay) && Objects.equals(this.hourly_isDay, hourCondition.hourly_isDay) &&
Objects.equals(this.windMph, hourCondition.windMph) && Objects.equals(this.hourly_windMph, hourCondition.hourly_windMph) &&
Objects.equals(this.windKph, hourCondition.windKph) && Objects.equals(this.hourly_windKph, hourCondition.hourly_windKph) &&
Objects.equals(this.windDegree, hourCondition.windDegree) && Objects.equals(this.hourly_windDegree, hourCondition.hourly_windDegree) &&
Objects.equals(this.windDir, hourCondition.windDir) && Objects.equals(this.hourly_windDir, hourCondition.hourly_windDir) &&
Objects.equals(this.pressureMb, hourCondition.pressureMb) && Objects.equals(this.hourly_pressureMb, hourCondition.hourly_pressureMb) &&
Objects.equals(this.pressureIn, hourCondition.pressureIn) && Objects.equals(this.hourly_pressureIn, hourCondition.hourly_pressureIn) &&
Objects.equals(this.precipMm, hourCondition.precipMm) && Objects.equals(this.hourly_precipMm, hourCondition.hourly_precipMm) &&
Objects.equals(this.precipIn, hourCondition.precipIn) && Objects.equals(this.hourly_precipIn, hourCondition.hourly_precipIn) &&
Objects.equals(this.humidity, hourCondition.humidity) && Objects.equals(this.hourly_humidity, hourCondition.hourly_humidity) &&
Objects.equals(this.cloud, hourCondition.cloud) && Objects.equals(this.hourly_cloud, hourCondition.hourly_cloud) &&
Objects.equals(this.feelslikeC, hourCondition.feelslikeC) && Objects.equals(this.hourly_feelslikeC, hourCondition.hourly_feelslikeC) &&
Objects.equals(this.feelslikeF, hourCondition.feelslikeF) && Objects.equals(this.hourly_feelslikeF, hourCondition.hourly_feelslikeF) &&
Objects.equals(this.windchillC, hourCondition.windchillC) && Objects.equals(this.hourly_windchillC, hourCondition.hourly_windchillC) &&
Objects.equals(this.windchillF, hourCondition.windchillF) && Objects.equals(this.hourly_windchillF, hourCondition.hourly_windchillF) &&
Objects.equals(this.heatindexC, hourCondition.heatindexC) && Objects.equals(this.hourly_heatindexC, hourCondition.hourly_heatindexC) &&
Objects.equals(this.heatindexF, hourCondition.heatindexF) && Objects.equals(this.hourly_heatindexF, hourCondition.hourly_heatindexF) &&
Objects.equals(this.dewpointC, hourCondition.dewpointC) && Objects.equals(this.hourly_dewpointC, hourCondition.hourly_dewpointC) &&
Objects.equals(this.dewpointF, hourCondition.dewpointF) && Objects.equals(this.hourly_dewpointF, hourCondition.hourly_dewpointF) &&
Objects.equals(this.willItRain, hourCondition.willItRain) && Objects.equals(this.hourly_willItRain, hourCondition.hourly_willItRain) &&
Objects.equals(this.chanceOfRain, hourCondition.chanceOfRain) && Objects.equals(this.hourly_chanceOfRain, hourCondition.hourly_chanceOfRain) &&
Objects.equals(this.willItSnow, hourCondition.willItSnow) && Objects.equals(this.hourly_willItSnow, hourCondition.hourly_willItSnow) &&
Objects.equals(this.chanceOfSnow, hourCondition.chanceOfSnow) && Objects.equals(this.hourly_chanceOfSnow, hourCondition.hourly_chanceOfSnow) &&
Objects.equals(this.visKm, hourCondition.visKm) && Objects.equals(this.hourly_visKm, hourCondition.hourly_visKm) &&
Objects.equals(this.visMiles, hourCondition.visMiles) && Objects.equals(this.hourly_visMiles, hourCondition.hourly_visMiles) &&
Objects.equals(this.gustMph, hourCondition.gustMph) && Objects.equals(this.hourly_gustMph, hourCondition.hourly_gustMph) &&
Objects.equals(this.gustKph, hourCondition.gustKph) && Objects.equals(this.hourly_gustKph, hourCondition.hourly_gustKph) &&
Objects.equals(this.uv, hourCondition.uv); Objects.equals(this.hourly_uv, hourCondition.hourly_uv);
} }
@Override @Override
public int hashCode() { 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 @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class HourCondition {\n"); sb.append("class HourCondition {\n");
sb.append(" timeEpoch: ").append(toIndentedString(timeEpoch)).append("\n"); sb.append(" hourly_timeEpoch: ").append(toIndentedString(hourly_timeEpoch)).append("\n");
sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" hourly_time: ").append(toIndentedString(hourly_time)).append("\n");
sb.append(" tempC: ").append(toIndentedString(tempC)).append("\n"); sb.append(" hourly_tempC: ").append(toIndentedString(hourly_tempC)).append("\n");
sb.append(" tempF: ").append(toIndentedString(tempF)).append("\n"); sb.append(" hourly_tempF: ").append(toIndentedString(hourly_tempF)).append("\n");
sb.append(" isDay: ").append(toIndentedString(isDay)).append("\n"); sb.append(" hourly_isDay: ").append(toIndentedString(hourly_isDay)).append("\n");
sb.append(" windMph: ").append(toIndentedString(windMph)).append("\n"); sb.append(" hourly_windMph: ").append(toIndentedString(hourly_windMph)).append("\n");
sb.append(" windKph: ").append(toIndentedString(windKph)).append("\n"); sb.append(" hourly_windKph: ").append(toIndentedString(hourly_windKph)).append("\n");
sb.append(" windDegree: ").append(toIndentedString(windDegree)).append("\n"); sb.append(" hourly_windDegree: ").append(toIndentedString(hourly_windDegree)).append("\n");
sb.append(" windDir: ").append(toIndentedString(windDir)).append("\n"); sb.append(" hourly_windDir: ").append(toIndentedString(hourly_windDir)).append("\n");
sb.append(" pressureMb: ").append(toIndentedString(pressureMb)).append("\n"); sb.append(" hourly_pressureMb: ").append(toIndentedString(hourly_pressureMb)).append("\n");
sb.append(" pressureIn: ").append(toIndentedString(pressureIn)).append("\n"); sb.append(" hourly_pressureIn: ").append(toIndentedString(hourly_pressureIn)).append("\n");
sb.append(" precipMm: ").append(toIndentedString(precipMm)).append("\n"); sb.append(" hourly_precipMm: ").append(toIndentedString(hourly_precipMm)).append("\n");
sb.append(" precipIn: ").append(toIndentedString(precipIn)).append("\n"); sb.append(" hourly_precipIn: ").append(toIndentedString(hourly_precipIn)).append("\n");
sb.append(" humidity: ").append(toIndentedString(humidity)).append("\n"); sb.append(" hourly_humidity: ").append(toIndentedString(hourly_humidity)).append("\n");
sb.append(" cloud: ").append(toIndentedString(cloud)).append("\n"); sb.append(" hourly_cloud: ").append(toIndentedString(hourly_cloud)).append("\n");
sb.append(" feelslikeC: ").append(toIndentedString(feelslikeC)).append("\n"); sb.append(" hourly_feelslikeC: ").append(toIndentedString(hourly_feelslikeC)).append("\n");
sb.append(" feelslikeF: ").append(toIndentedString(feelslikeF)).append("\n"); sb.append(" hourly_feelslikeF: ").append(toIndentedString(hourly_feelslikeF)).append("\n");
sb.append(" windchillC: ").append(toIndentedString(windchillC)).append("\n"); sb.append(" hourly_windchillC: ").append(toIndentedString(hourly_windchillC)).append("\n");
sb.append(" windchillF: ").append(toIndentedString(windchillF)).append("\n"); sb.append(" hourly_windchillF: ").append(toIndentedString(hourly_windchillF)).append("\n");
sb.append(" heatindexC: ").append(toIndentedString(heatindexC)).append("\n"); sb.append(" hourly_heatindexC: ").append(toIndentedString(hourly_heatindexC)).append("\n");
sb.append(" heatindexF: ").append(toIndentedString(heatindexF)).append("\n"); sb.append(" hourly_heatindexF: ").append(toIndentedString(hourly_heatindexF)).append("\n");
sb.append(" dewpointC: ").append(toIndentedString(dewpointC)).append("\n"); sb.append(" hourly_dewpointC: ").append(toIndentedString(hourly_dewpointC)).append("\n");
sb.append(" dewpointF: ").append(toIndentedString(dewpointF)).append("\n"); sb.append(" hourly_dewpointF: ").append(toIndentedString(hourly_dewpointF)).append("\n");
sb.append(" willItRain: ").append(toIndentedString(willItRain)).append("\n"); sb.append(" hourly_willItRain: ").append(toIndentedString(hourly_willItRain)).append("\n");
sb.append(" chanceOfRain: ").append(toIndentedString(chanceOfRain)).append("\n"); sb.append(" hourly_chanceOfRain: ").append(toIndentedString(hourly_chanceOfRain)).append("\n");
sb.append(" willItSnow: ").append(toIndentedString(willItSnow)).append("\n"); sb.append(" hourly_willItSnow: ").append(toIndentedString(hourly_willItSnow)).append("\n");
sb.append(" chanceOfSnow: ").append(toIndentedString(chanceOfSnow)).append("\n"); sb.append(" hourly_chanceOfSnow: ").append(toIndentedString(hourly_chanceOfSnow)).append("\n");
sb.append(" visKm: ").append(toIndentedString(visKm)).append("\n"); sb.append(" hourly_visKm: ").append(toIndentedString(hourly_visKm)).append("\n");
sb.append(" visMiles: ").append(toIndentedString(visMiles)).append("\n"); sb.append(" hourly_visMiles: ").append(toIndentedString(hourly_visMiles)).append("\n");
sb.append(" gustMph: ").append(toIndentedString(gustMph)).append("\n"); sb.append(" hourly_gustMph: ").append(toIndentedString(hourly_gustMph)).append("\n");
sb.append(" gustKph: ").append(toIndentedString(gustKph)).append("\n"); sb.append(" hourly_gustKph: ").append(toIndentedString(hourly_gustKph)).append("\n");
sb.append(" uv: ").append(toIndentedString(uv)).append("\n"); sb.append(" hourly_uv: ").append(toIndentedString(hourly_uv)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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 io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
...@@ -14,8 +17,8 @@ import javax.validation.constraints.*; ...@@ -14,8 +17,8 @@ import javax.validation.constraints.*;
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-08T14:34:21.706302463Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-08T14:34:21.706302463Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class InlineResponse200 { public class InlineResponse200 {
@JsonProperty("latitude") @JsonProperty("latitude")
private Float latitude = null; private Float latitude = null;
...@@ -56,12 +59,13 @@ public class InlineResponse200 { ...@@ -56,12 +59,13 @@ public class InlineResponse200 {
/** /**
* Get latitude * Get latitude
*
* @return latitude * @return latitude
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getLatitude() { public Float getLatitude() {
return latitude; return latitude;
} }
...@@ -76,12 +80,13 @@ public class InlineResponse200 { ...@@ -76,12 +80,13 @@ public class InlineResponse200 {
/** /**
* Get longitude * Get longitude
*
* @return longitude * @return longitude
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getLongitude() { public Float getLongitude() {
return longitude; return longitude;
} }
...@@ -96,12 +101,13 @@ public class InlineResponse200 { ...@@ -96,12 +101,13 @@ public class InlineResponse200 {
/** /**
* Get generationtimeMs * Get generationtimeMs
*
* @return generationtimeMs * @return generationtimeMs
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getGenerationtimeMs() { public Float getGenerationtimeMs() {
return generationtimeMs; return generationtimeMs;
} }
...@@ -116,12 +122,13 @@ public class InlineResponse200 { ...@@ -116,12 +122,13 @@ public class InlineResponse200 {
/** /**
* Get utcOffsetSeconds * Get utcOffsetSeconds
*
* @return utcOffsetSeconds * @return utcOffsetSeconds
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getUtcOffsetSeconds() { public Integer getUtcOffsetSeconds() {
return utcOffsetSeconds; return utcOffsetSeconds;
} }
...@@ -136,12 +143,13 @@ public class InlineResponse200 { ...@@ -136,12 +143,13 @@ public class InlineResponse200 {
/** /**
* Get timezone * Get timezone
*
* @return timezone * @return timezone
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getTimezone() { public String getTimezone() {
return timezone; return timezone;
} }
...@@ -156,12 +164,13 @@ public class InlineResponse200 { ...@@ -156,12 +164,13 @@ public class InlineResponse200 {
/** /**
* Get timezoneAbbreviation * Get timezoneAbbreviation
*
* @return timezoneAbbreviation * @return timezoneAbbreviation
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public String getTimezoneAbbreviation() { public String getTimezoneAbbreviation() {
return timezoneAbbreviation; return timezoneAbbreviation;
} }
...@@ -176,12 +185,13 @@ public class InlineResponse200 { ...@@ -176,12 +185,13 @@ public class InlineResponse200 {
/** /**
* Get elevation * Get elevation
*
* @return elevation * @return elevation
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Integer getElevation() { public Integer getElevation() {
return elevation; return elevation;
} }
...@@ -196,12 +206,13 @@ public class InlineResponse200 { ...@@ -196,12 +206,13 @@ public class InlineResponse200 {
/** /**
* Get hourlyUnits * Get hourlyUnits
*
* @return hourlyUnits * @return hourlyUnits
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getHourlyUnits() { public Object getHourlyUnits() {
return hourlyUnits; return hourlyUnits;
} }
...@@ -216,12 +227,13 @@ public class InlineResponse200 { ...@@ -216,12 +227,13 @@ public class InlineResponse200 {
/** /**
* Get hourly * Get hourly
*
* @return hourly * @return hourly
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getHourly() { public Object getHourly() {
return hourly; return hourly;
} }
...@@ -236,12 +248,13 @@ public class InlineResponse200 { ...@@ -236,12 +248,13 @@ public class InlineResponse200 {
/** /**
* Get dailyUnits * Get dailyUnits
*
* @return dailyUnits * @return dailyUnits
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getDailyUnits() { public Object getDailyUnits() {
return dailyUnits; return dailyUnits;
} }
...@@ -256,12 +269,13 @@ public class InlineResponse200 { ...@@ -256,12 +269,13 @@ public class InlineResponse200 {
/** /**
* Get daily * Get daily
*
* @return daily * @return daily
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Object getDaily() { public Object getDaily() {
return daily; return daily;
} }
...@@ -269,7 +283,6 @@ public class InlineResponse200 { ...@@ -269,7 +283,6 @@ public class InlineResponse200 {
this.daily = daily; this.daily = daily;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -294,14 +307,15 @@ public class InlineResponse200 { ...@@ -294,14 +307,15 @@ public class InlineResponse200 {
@Override @Override
public int hashCode() { 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 @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse200 {\n"); sb.append("class InlineResponse200 {\n");
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
sb.append(" generationtimeMs: ").append(toIndentedString(generationtimeMs)).append("\n"); sb.append(" generationtimeMs: ").append(toIndentedString(generationtimeMs)).append("\n");
......
...@@ -18,15 +18,14 @@ import javax.validation.constraints.*; ...@@ -18,15 +18,14 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]")
@JsonInclude(Include.NON_NULL) @JsonInclude(Include.NON_NULL)
public class Model200 { public class Model200 {
@JsonProperty("location") @JsonProperty("location")
private Location location = null; private Location location = new Location();
@JsonProperty("current") @JsonProperty("current")
private Current current = null; private Current current = new Current();
public Model200 location(Location location) { public Model200 location(Location location) {
this.location = location; this.location = location;
......
...@@ -23,16 +23,16 @@ import javax.validation.constraints.*; ...@@ -23,16 +23,16 @@ import javax.validation.constraints.*;
public class Modelforecast { public class Modelforecast {
@JsonProperty("location") @JsonProperty("location")
private Location location = null; private Location location = new Location();
@JsonProperty("current") @JsonProperty("current")
private Current current = null; private Current current = new Current();
@JsonProperty("forecast") @JsonProperty("forecast")
private WeatherResponseForecast forecast = null; private WeatherResponseForecast forecast = new WeatherResponseForecast();
@JsonProperty("alerts") @JsonProperty("alerts")
private WeatherResponseAlerts alerts = null; private WeatherResponseAlerts alerts = new WeatherResponseAlerts();
public Modelforecast location(Location location) { public Modelforecast location(Location location) {
this.location = location; this.location = location;
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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.model.WeatherResponseForecast;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
...@@ -15,8 +18,8 @@ import javax.validation.constraints.*; ...@@ -15,8 +18,8 @@ import javax.validation.constraints.*;
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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 WeatherResponse { public class WeatherResponse {
@JsonProperty("forecast") @JsonProperty("forecast")
private WeatherResponseForecast forecast = null; private WeatherResponseForecast forecast = null;
...@@ -27,13 +30,14 @@ public class WeatherResponse { ...@@ -27,13 +30,14 @@ public class WeatherResponse {
/** /**
* Get forecast * Get forecast
*
* @return forecast * @return forecast
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public WeatherResponseForecast getForecast() { public WeatherResponseForecast getForecast() {
return forecast; return forecast;
} }
...@@ -41,7 +45,6 @@ public class WeatherResponse { ...@@ -41,7 +45,6 @@ public class WeatherResponse {
this.forecast = forecast; this.forecast = forecast;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -63,7 +66,7 @@ public class WeatherResponse { ...@@ -63,7 +66,7 @@ public class WeatherResponse {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponse {\n"); sb.append("class WeatherResponse {\n");
sb.append(" forecast: ").append(toIndentedString(forecast)).append("\n"); sb.append(" forecast: ").append(toIndentedString(forecast)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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.model.Alerts;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -17,8 +20,8 @@ import javax.validation.constraints.*; ...@@ -17,8 +20,8 @@ import javax.validation.constraints.*;
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T13:05:28.829911948Z[GMT]") @javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T13:05:28.829911948Z[GMT]")
@JsonInclude(Include.NON_NULL)
public class WeatherResponseAlerts { public class WeatherResponseAlerts {
@JsonProperty("alert") @JsonProperty("alert")
@Valid @Valid
private List<Alerts> alert = null; private List<Alerts> alert = null;
...@@ -38,12 +41,13 @@ public class WeatherResponseAlerts { ...@@ -38,12 +41,13 @@ public class WeatherResponseAlerts {
/** /**
* Get alert * Get alert
*
* @return alert * @return alert
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public List<Alerts> getAlert() { public List<Alerts> getAlert() {
return alert; return alert;
} }
...@@ -51,7 +55,6 @@ public class WeatherResponseAlerts { ...@@ -51,7 +55,6 @@ public class WeatherResponseAlerts {
this.alert = alert; this.alert = alert;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -73,7 +76,7 @@ public class WeatherResponseAlerts { ...@@ -73,7 +76,7 @@ public class WeatherResponseAlerts {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponseAlerts {\n"); sb.append("class WeatherResponseAlerts {\n");
sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); sb.append(" alert: ").append(toIndentedString(alert)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
......
...@@ -3,6 +3,9 @@ package io.swagger.model; ...@@ -3,6 +3,9 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; 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.model.ForecastDay;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -16,12 +19,11 @@ import javax.validation.constraints.*; ...@@ -16,12 +19,11 @@ import javax.validation.constraints.*;
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]") @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 WeatherResponseForecast {
public class WeatherResponseForecast {
@JsonProperty("forecastday") @JsonProperty("forecastday")
@Valid @Valid
private List<ForecastDay> forecastday = null; private List<ForecastDay> forecastday = new ArrayList<>();
public WeatherResponseForecast forecastday(List<ForecastDay> forecastday) { public WeatherResponseForecast forecastday(List<ForecastDay> forecastday) {
this.forecastday = forecastday; this.forecastday = forecastday;
...@@ -38,12 +40,13 @@ public class WeatherResponseForecast { ...@@ -38,12 +40,13 @@ public class WeatherResponseForecast {
/** /**
* Get forecastday * Get forecastday
*
* @return forecastday * @return forecastday
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
@Valid @Valid
public List<ForecastDay> getForecastday() { public List<ForecastDay> getForecastday() {
return forecastday; return forecastday;
} }
...@@ -51,7 +54,6 @@ public class WeatherResponseForecast { ...@@ -51,7 +54,6 @@ public class WeatherResponseForecast {
this.forecastday = forecastday; this.forecastday = forecastday;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -73,7 +75,7 @@ public class WeatherResponseForecast { ...@@ -73,7 +75,7 @@ public class WeatherResponseForecast {
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class WeatherResponseForecast {\n"); sb.append("class WeatherResponseForecast {\n");
sb.append(" forecastday: ").append(toIndentedString(forecastday)).append("\n"); sb.append(" forecastday: ").append(toIndentedString(forecastday)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); 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