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);
......
...@@ -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,7 +17,7 @@ import javax.validation.constraints.*; ...@@ -14,7 +17,7 @@ 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")
...@@ -63,6 +66,7 @@ public class Alerts { ...@@ -63,6 +66,7 @@ public class Alerts {
/** /**
* Get headline * Get headline
*
* @return headline * @return headline
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -83,6 +87,7 @@ public class Alerts { ...@@ -83,6 +87,7 @@ public class Alerts {
/** /**
* Get msgtype * Get msgtype
*
* @return msgtype * @return msgtype
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -102,6 +107,7 @@ public class Alerts { ...@@ -102,6 +107,7 @@ public class Alerts {
/** /**
* Get severity * Get severity
*
* @return severity * @return severity
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -121,6 +127,7 @@ public class Alerts { ...@@ -121,6 +127,7 @@ public class Alerts {
/** /**
* Get urgency * Get urgency
*
* @return urgency * @return urgency
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -140,6 +147,7 @@ public class Alerts { ...@@ -140,6 +147,7 @@ public class Alerts {
/** /**
* Get areas * Get areas
*
* @return areas * @return areas
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -159,6 +167,7 @@ public class Alerts { ...@@ -159,6 +167,7 @@ public class Alerts {
/** /**
* Get category * Get category
*
* @return category * @return category
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -179,6 +188,7 @@ public class Alerts { ...@@ -179,6 +188,7 @@ public class Alerts {
/** /**
* Get certainty * Get certainty
*
* @return certainty * @return certainty
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -198,6 +208,7 @@ public class Alerts { ...@@ -198,6 +208,7 @@ public class Alerts {
/** /**
* Get event * Get event
*
* @return event * @return event
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -218,6 +229,7 @@ public class Alerts { ...@@ -218,6 +229,7 @@ public class Alerts {
/** /**
* Get note * Get note
*
* @return note * @return note
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -237,6 +249,7 @@ public class Alerts { ...@@ -237,6 +249,7 @@ public class Alerts {
/** /**
* Get effective * Get effective
*
* @return effective * @return effective
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -258,6 +271,7 @@ public class Alerts { ...@@ -258,6 +271,7 @@ public class Alerts {
/** /**
* Get expires * Get expires
*
* @return expires * @return expires
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -279,6 +293,7 @@ public class Alerts { ...@@ -279,6 +293,7 @@ public class Alerts {
/** /**
* Get desc * Get desc
*
* @return desc * @return desc
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -299,6 +314,7 @@ public class Alerts { ...@@ -299,6 +314,7 @@ public class Alerts {
/** /**
* Get instruction * Get instruction
*
* @return instruction * @return instruction
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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,7 +354,8 @@ public class Alerts { ...@@ -339,7 +354,8 @@ 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
......
...@@ -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,7 +16,7 @@ import javax.validation.constraints.*; ...@@ -13,7 +16,7 @@ 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")
...@@ -41,6 +44,7 @@ public class Astro { ...@@ -41,6 +44,7 @@ public class Astro {
/** /**
* Get sunrise * Get sunrise
*
* @return sunrise * @return sunrise
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -61,6 +65,7 @@ public class Astro { ...@@ -61,6 +65,7 @@ public class Astro {
/** /**
* Get sunset * Get sunset
*
* @return sunset * @return sunset
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -81,6 +86,7 @@ public class Astro { ...@@ -81,6 +86,7 @@ public class Astro {
/** /**
* Get moonrise * Get moonrise
*
* @return moonrise * @return moonrise
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -101,6 +107,7 @@ public class Astro { ...@@ -101,6 +107,7 @@ public class Astro {
/** /**
* Get moonset * Get moonset
*
* @return moonset * @return moonset
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -121,6 +128,7 @@ public class Astro { ...@@ -121,6 +128,7 @@ public class Astro {
/** /**
* Get moonPhase * Get moonPhase
*
* @return moonPhase * @return moonPhase
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -141,6 +149,7 @@ public class Astro { ...@@ -141,6 +149,7 @@ public class Astro {
/** /**
* Get moonIllumination * Get moonIllumination
*
* @return moonIllumination * @return moonIllumination
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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) {
......
...@@ -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,8 +16,7 @@ import javax.validation.constraints.*; ...@@ -13,8 +16,7 @@ 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,6 +79,7 @@ public class DayCondition { ...@@ -77,6 +79,7 @@ public class DayCondition {
/** /**
* Get maxtempC * Get maxtempC
*
* @return maxtempC * @return maxtempC
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -97,6 +100,7 @@ public class DayCondition { ...@@ -97,6 +100,7 @@ public class DayCondition {
/** /**
* Get maxtempF * Get maxtempF
*
* @return maxtempF * @return maxtempF
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -117,6 +121,7 @@ public class DayCondition { ...@@ -117,6 +121,7 @@ public class DayCondition {
/** /**
* Get mintempC * Get mintempC
*
* @return mintempC * @return mintempC
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -137,6 +142,7 @@ public class DayCondition { ...@@ -137,6 +142,7 @@ public class DayCondition {
/** /**
* Get mintempF * Get mintempF
*
* @return mintempF * @return mintempF
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -157,6 +163,7 @@ public class DayCondition { ...@@ -157,6 +163,7 @@ public class DayCondition {
/** /**
* Get avgtempC * Get avgtempC
*
* @return avgtempC * @return avgtempC
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -177,6 +184,7 @@ public class DayCondition { ...@@ -177,6 +184,7 @@ public class DayCondition {
/** /**
* Get avgtempF * Get avgtempF
*
* @return avgtempF * @return avgtempF
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -197,6 +205,7 @@ public class DayCondition { ...@@ -197,6 +205,7 @@ public class DayCondition {
/** /**
* Get maxwindMph * Get maxwindMph
*
* @return maxwindMph * @return maxwindMph
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -217,6 +226,7 @@ public class DayCondition { ...@@ -217,6 +226,7 @@ public class DayCondition {
/** /**
* Get maxwindKph * Get maxwindKph
*
* @return maxwindKph * @return maxwindKph
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -237,6 +247,7 @@ public class DayCondition { ...@@ -237,6 +247,7 @@ public class DayCondition {
/** /**
* Get totalprecipMm * Get totalprecipMm
*
* @return totalprecipMm * @return totalprecipMm
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -257,6 +268,7 @@ public class DayCondition { ...@@ -257,6 +268,7 @@ public class DayCondition {
/** /**
* Get totalprecipIn * Get totalprecipIn
*
* @return totalprecipIn * @return totalprecipIn
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -277,6 +289,7 @@ public class DayCondition { ...@@ -277,6 +289,7 @@ public class DayCondition {
/** /**
* Get avgvisKm * Get avgvisKm
*
* @return avgvisKm * @return avgvisKm
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -297,6 +310,7 @@ public class DayCondition { ...@@ -297,6 +310,7 @@ public class DayCondition {
/** /**
* Get avgvisMiles * Get avgvisMiles
*
* @return avgvisMiles * @return avgvisMiles
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -317,6 +331,7 @@ public class DayCondition { ...@@ -317,6 +331,7 @@ public class DayCondition {
/** /**
* Get avghumidity * Get avghumidity
*
* @return avghumidity * @return avghumidity
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -337,6 +352,7 @@ public class DayCondition { ...@@ -337,6 +352,7 @@ public class DayCondition {
/** /**
* Get dailyWillItRain * Get dailyWillItRain
*
* @return dailyWillItRain * @return dailyWillItRain
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -357,6 +373,7 @@ public class DayCondition { ...@@ -357,6 +373,7 @@ public class DayCondition {
/** /**
* Get dailyChanceOfRain * Get dailyChanceOfRain
*
* @return dailyChanceOfRain * @return dailyChanceOfRain
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -377,6 +394,7 @@ public class DayCondition { ...@@ -377,6 +394,7 @@ public class DayCondition {
/** /**
* Get dailyWillItSnow * Get dailyWillItSnow
*
* @return dailyWillItSnow * @return dailyWillItSnow
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -397,6 +415,7 @@ public class DayCondition { ...@@ -397,6 +415,7 @@ public class DayCondition {
/** /**
* Get dailyChanceOfSnow * Get dailyChanceOfSnow
*
* @return dailyChanceOfSnow * @return dailyChanceOfSnow
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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,12 +476,14 @@ public class DayCondition { ...@@ -457,12 +476,14 @@ 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
...@@ -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,8 +21,7 @@ import javax.validation.constraints.*; ...@@ -18,8 +21,7 @@ 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,6 +46,7 @@ public class ForecastDay { ...@@ -44,6 +46,7 @@ public class ForecastDay {
/** /**
* Get date * Get date
*
* @return date * @return date
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -64,6 +67,7 @@ public class ForecastDay { ...@@ -64,6 +67,7 @@ public class ForecastDay {
/** /**
* Get dateEpoch * Get dateEpoch
*
* @return dateEpoch * @return dateEpoch
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -84,6 +88,7 @@ public class ForecastDay { ...@@ -84,6 +88,7 @@ public class ForecastDay {
/** /**
* Get day * Get day
*
* @return day * @return day
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -105,6 +110,7 @@ public class ForecastDay { ...@@ -105,6 +110,7 @@ public class ForecastDay {
/** /**
* Get astro * Get astro
*
* @return astro * @return astro
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -134,6 +140,7 @@ public class ForecastDay { ...@@ -134,6 +140,7 @@ public class ForecastDay {
/** /**
* Get hour * Get hour
*
* @return hour * @return hour
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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) {
......
...@@ -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,7 +17,7 @@ import javax.validation.constraints.*; ...@@ -14,7 +17,7 @@ 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,6 +59,7 @@ public class InlineResponse200 { ...@@ -56,6 +59,7 @@ public class InlineResponse200 {
/** /**
* Get latitude * Get latitude
*
* @return latitude * @return latitude
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -76,6 +80,7 @@ public class InlineResponse200 { ...@@ -76,6 +80,7 @@ public class InlineResponse200 {
/** /**
* Get longitude * Get longitude
*
* @return longitude * @return longitude
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -96,6 +101,7 @@ public class InlineResponse200 { ...@@ -96,6 +101,7 @@ public class InlineResponse200 {
/** /**
* Get generationtimeMs * Get generationtimeMs
*
* @return generationtimeMs * @return generationtimeMs
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -116,6 +122,7 @@ public class InlineResponse200 { ...@@ -116,6 +122,7 @@ public class InlineResponse200 {
/** /**
* Get utcOffsetSeconds * Get utcOffsetSeconds
*
* @return utcOffsetSeconds * @return utcOffsetSeconds
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -136,6 +143,7 @@ public class InlineResponse200 { ...@@ -136,6 +143,7 @@ public class InlineResponse200 {
/** /**
* Get timezone * Get timezone
*
* @return timezone * @return timezone
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -156,6 +164,7 @@ public class InlineResponse200 { ...@@ -156,6 +164,7 @@ public class InlineResponse200 {
/** /**
* Get timezoneAbbreviation * Get timezoneAbbreviation
*
* @return timezoneAbbreviation * @return timezoneAbbreviation
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -176,6 +185,7 @@ public class InlineResponse200 { ...@@ -176,6 +185,7 @@ public class InlineResponse200 {
/** /**
* Get elevation * Get elevation
*
* @return elevation * @return elevation
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -196,6 +206,7 @@ public class InlineResponse200 { ...@@ -196,6 +206,7 @@ public class InlineResponse200 {
/** /**
* Get hourlyUnits * Get hourlyUnits
*
* @return hourlyUnits * @return hourlyUnits
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -216,6 +227,7 @@ public class InlineResponse200 { ...@@ -216,6 +227,7 @@ public class InlineResponse200 {
/** /**
* Get hourly * Get hourly
*
* @return hourly * @return hourly
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -236,6 +248,7 @@ public class InlineResponse200 { ...@@ -236,6 +248,7 @@ public class InlineResponse200 {
/** /**
* Get dailyUnits * Get dailyUnits
*
* @return dailyUnits * @return dailyUnits
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -256,6 +269,7 @@ public class InlineResponse200 { ...@@ -256,6 +269,7 @@ public class InlineResponse200 {
/** /**
* Get daily * Get daily
*
* @return daily * @return daily
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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,7 +307,8 @@ public class InlineResponse200 { ...@@ -294,7 +307,8 @@ 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
......
...@@ -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,7 +18,7 @@ import javax.validation.constraints.*; ...@@ -15,7 +18,7 @@ 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,6 +30,7 @@ public class WeatherResponse { ...@@ -27,6 +30,7 @@ public class WeatherResponse {
/** /**
* Get forecast * Get forecast
*
* @return forecast * @return forecast
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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) {
......
...@@ -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,7 +20,7 @@ import javax.validation.constraints.*; ...@@ -17,7 +20,7 @@ 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
...@@ -38,6 +41,7 @@ public class WeatherResponseAlerts { ...@@ -38,6 +41,7 @@ public class WeatherResponseAlerts {
/** /**
* Get alert * Get alert
*
* @return alert * @return alert
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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) {
......
...@@ -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,6 +40,7 @@ public class WeatherResponseForecast { ...@@ -38,6 +40,7 @@ public class WeatherResponseForecast {
/** /**
* Get forecastday * Get forecastday
*
* @return forecastday * @return forecastday
**/ **/
@Schema(description = "") @Schema(description = "")
...@@ -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) {
......
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