Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Karakas
SWP_SS24_Wetterdaten_sammeln
Commits
9d889c8b
Commit
9d889c8b
authored
Jun 08, 2024
by
EnesKarakas
Browse files
new backend
parent
888289d4
Changes
42
Show whitespace changes
Inline
Side-by-side
src/main/java/io/swagger/configuration/HomeController.java
0 → 100644
View file @
9d889c8b
package
io.swagger.configuration
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
/**
* Home redirection to swagger api documentation
*/
@Controller
public
class
HomeController
{
@RequestMapping
(
value
=
"/"
)
public
String
index
()
{
return
"redirect:/swagger-ui/"
;
}
}
src/main/java/io/swagger/configuration/JacksonConfiguration.java
0 → 100644
View file @
9d889c8b
package
io.swagger.configuration
;
import
com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.threeten.bp.Instant
;
import
org.threeten.bp.OffsetDateTime
;
import
org.threeten.bp.ZonedDateTime
;
@Configuration
public
class
JacksonConfiguration
{
@Bean
@ConditionalOnMissingBean
(
ThreeTenModule
.
class
)
ThreeTenModule
threeTenModule
()
{
ThreeTenModule
module
=
new
ThreeTenModule
();
module
.
addDeserializer
(
Instant
.
class
,
CustomInstantDeserializer
.
INSTANT
);
module
.
addDeserializer
(
OffsetDateTime
.
class
,
CustomInstantDeserializer
.
OFFSET_DATE_TIME
);
module
.
addDeserializer
(
ZonedDateTime
.
class
,
CustomInstantDeserializer
.
ZONED_DATE_TIME
);
return
module
;
}
}
src/main/java/io/swagger/configuration/LocalDateConverter.java
0 → 100644
View file @
9d889c8b
package
io.swagger.configuration
;
import
org.springframework.core.convert.converter.Converter
;
import
org.threeten.bp.LocalDate
;
import
org.threeten.bp.format.DateTimeFormatter
;
public
class
LocalDateConverter
implements
Converter
<
String
,
LocalDate
>
{
private
final
DateTimeFormatter
formatter
;
public
LocalDateConverter
(
String
dateFormat
)
{
this
.
formatter
=
DateTimeFormatter
.
ofPattern
(
dateFormat
);
}
@Override
public
LocalDate
convert
(
String
source
)
{
if
(
source
==
null
||
source
.
isEmpty
())
{
return
null
;
}
return
LocalDate
.
parse
(
source
,
this
.
formatter
);
}
}
src/main/java/io/swagger/configuration/LocalDateTimeConverter.java
0 → 100644
View file @
9d889c8b
package
io.swagger.configuration
;
import
org.springframework.core.convert.converter.Converter
;
import
org.threeten.bp.LocalDateTime
;
import
org.threeten.bp.format.DateTimeFormatter
;
public
class
LocalDateTimeConverter
implements
Converter
<
String
,
LocalDateTime
>
{
private
final
DateTimeFormatter
formatter
;
public
LocalDateTimeConverter
(
String
dateFormat
)
{
this
.
formatter
=
DateTimeFormatter
.
ofPattern
(
dateFormat
);
}
@Override
public
LocalDateTime
convert
(
String
source
)
{
if
(
source
==
null
||
source
.
isEmpty
())
{
return
null
;
}
return
LocalDateTime
.
parse
(
source
,
this
.
formatter
);
}
}
src/main/java/io/swagger/configuration/SwaggerDocumentationConfig.java
0 → 100644
View file @
9d889c8b
package
io.swagger.configuration
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
io.swagger.v3.oas.models.OpenAPI
;
import
io.swagger.v3.oas.models.info.Info
;
import
io.swagger.v3.oas.models.info.License
;
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@Configuration
public
class
SwaggerDocumentationConfig
{
@Bean
public
OpenAPI
openApi
()
{
return
new
OpenAPI
()
.
info
(
new
Info
()
.
title
(
"OpenWeatherMap API"
)
.
description
(
"Sample OpenWeather API."
)
.
termsOfService
(
""
)
.
version
(
"1.0"
)
.
license
(
new
License
()
.
name
(
""
)
.
url
(
"http://unlicense.org"
))
.
contact
(
new
io
.
swagger
.
v3
.
oas
.
models
.
info
.
Contact
()
.
email
(
""
)));
}
}
src/main/java/io/swagger/configuration/SwaggerUiConfiguration.java
0 → 100644
View file @
9d889c8b
package
io.swagger.configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
;
import
org.springframework.web.servlet.config.annotation.ViewControllerRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@Configuration
public
class
SwaggerUiConfiguration
implements
WebMvcConfigurer
{
@Override
public
void
addViewControllers
(
ViewControllerRegistry
registry
)
{
registry
.
addViewController
(
"/swagger-ui/"
).
setViewName
(
"forward:/swagger-ui/index.html"
);
}
}
src/main/java/io/swagger/model/Alerts.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.threeten.bp.OffsetDateTime
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* Alerts
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
Alerts
{
@JsonProperty
(
"headline"
)
private
String
headline
=
null
;
@JsonProperty
(
"msgtype"
)
private
String
msgtype
=
null
;
@JsonProperty
(
"severity"
)
private
String
severity
=
null
;
@JsonProperty
(
"urgency"
)
private
String
urgency
=
null
;
@JsonProperty
(
"areas"
)
private
String
areas
=
null
;
@JsonProperty
(
"category"
)
private
String
category
=
null
;
@JsonProperty
(
"certainty"
)
private
String
certainty
=
null
;
@JsonProperty
(
"event"
)
private
String
event
=
null
;
@JsonProperty
(
"note"
)
private
String
note
=
null
;
@JsonProperty
(
"effective"
)
private
OffsetDateTime
effective
=
null
;
@JsonProperty
(
"expires"
)
private
OffsetDateTime
expires
=
null
;
@JsonProperty
(
"desc"
)
private
String
desc
=
null
;
@JsonProperty
(
"instruction"
)
private
String
instruction
=
null
;
public
Alerts
headline
(
String
headline
)
{
this
.
headline
=
headline
;
return
this
;
}
/**
* Get headline
* @return headline
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getHeadline
()
{
return
headline
;
}
public
void
setHeadline
(
String
headline
)
{
this
.
headline
=
headline
;
}
public
Alerts
msgtype
(
String
msgtype
)
{
this
.
msgtype
=
msgtype
;
return
this
;
}
/**
* Get msgtype
* @return msgtype
**/
@Schema
(
description
=
""
)
public
String
getMsgtype
()
{
return
msgtype
;
}
public
void
setMsgtype
(
String
msgtype
)
{
this
.
msgtype
=
msgtype
;
}
public
Alerts
severity
(
String
severity
)
{
this
.
severity
=
severity
;
return
this
;
}
/**
* Get severity
* @return severity
**/
@Schema
(
description
=
""
)
public
String
getSeverity
()
{
return
severity
;
}
public
void
setSeverity
(
String
severity
)
{
this
.
severity
=
severity
;
}
public
Alerts
urgency
(
String
urgency
)
{
this
.
urgency
=
urgency
;
return
this
;
}
/**
* Get urgency
* @return urgency
**/
@Schema
(
description
=
""
)
public
String
getUrgency
()
{
return
urgency
;
}
public
void
setUrgency
(
String
urgency
)
{
this
.
urgency
=
urgency
;
}
public
Alerts
areas
(
String
areas
)
{
this
.
areas
=
areas
;
return
this
;
}
/**
* Get areas
* @return areas
**/
@Schema
(
description
=
""
)
public
String
getAreas
()
{
return
areas
;
}
public
void
setAreas
(
String
areas
)
{
this
.
areas
=
areas
;
}
public
Alerts
category
(
String
category
)
{
this
.
category
=
category
;
return
this
;
}
/**
* Get category
* @return category
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getCategory
()
{
return
category
;
}
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
}
public
Alerts
certainty
(
String
certainty
)
{
this
.
certainty
=
certainty
;
return
this
;
}
/**
* Get certainty
* @return certainty
**/
@Schema
(
description
=
""
)
public
String
getCertainty
()
{
return
certainty
;
}
public
void
setCertainty
(
String
certainty
)
{
this
.
certainty
=
certainty
;
}
public
Alerts
event
(
String
event
)
{
this
.
event
=
event
;
return
this
;
}
/**
* Get event
* @return event
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getEvent
()
{
return
event
;
}
public
void
setEvent
(
String
event
)
{
this
.
event
=
event
;
}
public
Alerts
note
(
String
note
)
{
this
.
note
=
note
;
return
this
;
}
/**
* Get note
* @return note
**/
@Schema
(
description
=
""
)
public
String
getNote
()
{
return
note
;
}
public
void
setNote
(
String
note
)
{
this
.
note
=
note
;
}
public
Alerts
effective
(
OffsetDateTime
effective
)
{
this
.
effective
=
effective
;
return
this
;
}
/**
* Get effective
* @return effective
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
OffsetDateTime
getEffective
()
{
return
effective
;
}
public
void
setEffective
(
OffsetDateTime
effective
)
{
this
.
effective
=
effective
;
}
public
Alerts
expires
(
OffsetDateTime
expires
)
{
this
.
expires
=
expires
;
return
this
;
}
/**
* Get expires
* @return expires
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
OffsetDateTime
getExpires
()
{
return
expires
;
}
public
void
setExpires
(
OffsetDateTime
expires
)
{
this
.
expires
=
expires
;
}
public
Alerts
desc
(
String
desc
)
{
this
.
desc
=
desc
;
return
this
;
}
/**
* Get desc
* @return desc
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getDesc
()
{
return
desc
;
}
public
void
setDesc
(
String
desc
)
{
this
.
desc
=
desc
;
}
public
Alerts
instruction
(
String
instruction
)
{
this
.
instruction
=
instruction
;
return
this
;
}
/**
* Get instruction
* @return instruction
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getInstruction
()
{
return
instruction
;
}
public
void
setInstruction
(
String
instruction
)
{
this
.
instruction
=
instruction
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Alerts
alerts
=
(
Alerts
)
o
;
return
Objects
.
equals
(
this
.
headline
,
alerts
.
headline
)
&&
Objects
.
equals
(
this
.
msgtype
,
alerts
.
msgtype
)
&&
Objects
.
equals
(
this
.
severity
,
alerts
.
severity
)
&&
Objects
.
equals
(
this
.
urgency
,
alerts
.
urgency
)
&&
Objects
.
equals
(
this
.
areas
,
alerts
.
areas
)
&&
Objects
.
equals
(
this
.
category
,
alerts
.
category
)
&&
Objects
.
equals
(
this
.
certainty
,
alerts
.
certainty
)
&&
Objects
.
equals
(
this
.
event
,
alerts
.
event
)
&&
Objects
.
equals
(
this
.
note
,
alerts
.
note
)
&&
Objects
.
equals
(
this
.
effective
,
alerts
.
effective
)
&&
Objects
.
equals
(
this
.
expires
,
alerts
.
expires
)
&&
Objects
.
equals
(
this
.
desc
,
alerts
.
desc
)
&&
Objects
.
equals
(
this
.
instruction
,
alerts
.
instruction
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
headline
,
msgtype
,
severity
,
urgency
,
areas
,
category
,
certainty
,
event
,
note
,
effective
,
expires
,
desc
,
instruction
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Alerts {\n"
);
sb
.
append
(
" headline: "
).
append
(
toIndentedString
(
headline
)).
append
(
"\n"
);
sb
.
append
(
" msgtype: "
).
append
(
toIndentedString
(
msgtype
)).
append
(
"\n"
);
sb
.
append
(
" severity: "
).
append
(
toIndentedString
(
severity
)).
append
(
"\n"
);
sb
.
append
(
" urgency: "
).
append
(
toIndentedString
(
urgency
)).
append
(
"\n"
);
sb
.
append
(
" areas: "
).
append
(
toIndentedString
(
areas
)).
append
(
"\n"
);
sb
.
append
(
" category: "
).
append
(
toIndentedString
(
category
)).
append
(
"\n"
);
sb
.
append
(
" certainty: "
).
append
(
toIndentedString
(
certainty
)).
append
(
"\n"
);
sb
.
append
(
" event: "
).
append
(
toIndentedString
(
event
)).
append
(
"\n"
);
sb
.
append
(
" note: "
).
append
(
toIndentedString
(
note
)).
append
(
"\n"
);
sb
.
append
(
" effective: "
).
append
(
toIndentedString
(
effective
)).
append
(
"\n"
);
sb
.
append
(
" expires: "
).
append
(
toIndentedString
(
expires
)).
append
(
"\n"
);
sb
.
append
(
" desc: "
).
append
(
toIndentedString
(
desc
)).
append
(
"\n"
);
sb
.
append
(
" instruction: "
).
append
(
toIndentedString
(
instruction
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/Astro.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* Astro
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
Astro
{
@JsonProperty
(
"sunrise"
)
private
String
sunrise
=
null
;
@JsonProperty
(
"sunset"
)
private
String
sunset
=
null
;
@JsonProperty
(
"moonrise"
)
private
String
moonrise
=
null
;
@JsonProperty
(
"moonset"
)
private
String
moonset
=
null
;
@JsonProperty
(
"moon_phase"
)
private
String
moonPhase
=
null
;
@JsonProperty
(
"moon_illumination"
)
private
String
moonIllumination
=
null
;
public
Astro
sunrise
(
String
sunrise
)
{
this
.
sunrise
=
sunrise
;
return
this
;
}
/**
* Get sunrise
* @return sunrise
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getSunrise
()
{
return
sunrise
;
}
public
void
setSunrise
(
String
sunrise
)
{
this
.
sunrise
=
sunrise
;
}
public
Astro
sunset
(
String
sunset
)
{
this
.
sunset
=
sunset
;
return
this
;
}
/**
* Get sunset
* @return sunset
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getSunset
()
{
return
sunset
;
}
public
void
setSunset
(
String
sunset
)
{
this
.
sunset
=
sunset
;
}
public
Astro
moonrise
(
String
moonrise
)
{
this
.
moonrise
=
moonrise
;
return
this
;
}
/**
* Get moonrise
* @return moonrise
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getMoonrise
()
{
return
moonrise
;
}
public
void
setMoonrise
(
String
moonrise
)
{
this
.
moonrise
=
moonrise
;
}
public
Astro
moonset
(
String
moonset
)
{
this
.
moonset
=
moonset
;
return
this
;
}
/**
* Get moonset
* @return moonset
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getMoonset
()
{
return
moonset
;
}
public
void
setMoonset
(
String
moonset
)
{
this
.
moonset
=
moonset
;
}
public
Astro
moonPhase
(
String
moonPhase
)
{
this
.
moonPhase
=
moonPhase
;
return
this
;
}
/**
* Get moonPhase
* @return moonPhase
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getMoonPhase
()
{
return
moonPhase
;
}
public
void
setMoonPhase
(
String
moonPhase
)
{
this
.
moonPhase
=
moonPhase
;
}
public
Astro
moonIllumination
(
String
moonIllumination
)
{
this
.
moonIllumination
=
moonIllumination
;
return
this
;
}
/**
* Get moonIllumination
* @return moonIllumination
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getMoonIllumination
()
{
return
moonIllumination
;
}
public
void
setMoonIllumination
(
String
moonIllumination
)
{
this
.
moonIllumination
=
moonIllumination
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Astro
astro
=
(
Astro
)
o
;
return
Objects
.
equals
(
this
.
sunrise
,
astro
.
sunrise
)
&&
Objects
.
equals
(
this
.
sunset
,
astro
.
sunset
)
&&
Objects
.
equals
(
this
.
moonrise
,
astro
.
moonrise
)
&&
Objects
.
equals
(
this
.
moonset
,
astro
.
moonset
)
&&
Objects
.
equals
(
this
.
moonPhase
,
astro
.
moonPhase
)
&&
Objects
.
equals
(
this
.
moonIllumination
,
astro
.
moonIllumination
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
sunrise
,
sunset
,
moonrise
,
moonset
,
moonPhase
,
moonIllumination
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Astro {\n"
);
sb
.
append
(
" sunrise: "
).
append
(
toIndentedString
(
sunrise
)).
append
(
"\n"
);
sb
.
append
(
" sunset: "
).
append
(
toIndentedString
(
sunset
)).
append
(
"\n"
);
sb
.
append
(
" moonrise: "
).
append
(
toIndentedString
(
moonrise
)).
append
(
"\n"
);
sb
.
append
(
" moonset: "
).
append
(
toIndentedString
(
moonset
)).
append
(
"\n"
);
sb
.
append
(
" moonPhase: "
).
append
(
toIndentedString
(
moonPhase
)).
append
(
"\n"
);
sb
.
append
(
" moonIllumination: "
).
append
(
toIndentedString
(
moonIllumination
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/Current.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
io.swagger.model.WeatherAirQuality
;
import
io.swagger.model.WeatherCondition
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.math.BigDecimal
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* Weather
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
Current
{
@JsonProperty
(
"last_updated_epoch"
)
private
Integer
lastUpdatedEpoch
=
null
;
@JsonProperty
(
"last_updated"
)
private
String
lastUpdated
=
null
;
@JsonProperty
(
"temp_c"
)
private
BigDecimal
tempC
=
null
;
@JsonProperty
(
"temp_f"
)
private
BigDecimal
tempF
=
null
;
@JsonProperty
(
"id_day"
)
private
BigDecimal
idDay
=
null
;
@JsonProperty
(
"condition"
)
private
WeatherCondition
condition
=
null
;
@JsonProperty
(
"wind_mph"
)
private
BigDecimal
windMph
=
null
;
@JsonProperty
(
"wind_kph"
)
private
BigDecimal
windKph
=
null
;
@JsonProperty
(
"wind_degree"
)
private
Integer
windDegree
=
null
;
@JsonProperty
(
"wind_dir"
)
private
String
windDir
=
null
;
@JsonProperty
(
"pressure_mb"
)
private
BigDecimal
pressureMb
=
null
;
@JsonProperty
(
"pressure_in"
)
private
BigDecimal
pressureIn
=
null
;
@JsonProperty
(
"precip_mm"
)
private
BigDecimal
precipMm
=
null
;
@JsonProperty
(
"precip_in"
)
private
BigDecimal
precipIn
=
null
;
@JsonProperty
(
"humidity"
)
private
Integer
humidity
=
null
;
@JsonProperty
(
"cloud"
)
private
Integer
cloud
=
null
;
@JsonProperty
(
"feelslike_c"
)
private
BigDecimal
feelslikeC
=
null
;
@JsonProperty
(
"feelslike_f"
)
private
BigDecimal
feelslikeF
=
null
;
@JsonProperty
(
"windchill_c"
)
private
BigDecimal
windchillC
=
null
;
@JsonProperty
(
"windchill_f"
)
private
BigDecimal
windchillF
=
null
;
@JsonProperty
(
"heatindex_c"
)
private
Integer
heatindexC
=
null
;
@JsonProperty
(
"heatindex_f"
)
private
BigDecimal
heatindexF
=
null
;
@JsonProperty
(
"dewpoint_c"
)
private
BigDecimal
dewpointC
=
null
;
@JsonProperty
(
"dewpoint_f"
)
private
BigDecimal
dewpointF
=
null
;
@JsonProperty
(
"vis_km"
)
private
BigDecimal
visKm
=
null
;
@JsonProperty
(
"vis_miles"
)
private
BigDecimal
visMiles
=
null
;
@JsonProperty
(
"uv"
)
private
BigDecimal
uv
=
null
;
@JsonProperty
(
"gust_mph"
)
private
BigDecimal
gustMph
=
null
;
@JsonProperty
(
"gust_kph"
)
private
BigDecimal
gustKph
=
null
;
@JsonProperty
(
"air_quality"
)
private
WeatherAirQuality
airQuality
=
null
;
public
Current
lastUpdatedEpoch
(
Integer
lastUpdatedEpoch
)
{
this
.
lastUpdatedEpoch
=
lastUpdatedEpoch
;
return
this
;
}
/**
* uptated epoch
*
* @return lastUpdatedEpoch
**/
@Schema
(
example
=
"1238213521"
,
description
=
"uptated epoch"
)
@NotNull
public
Integer
getLastUpdatedEpoch
()
{
return
lastUpdatedEpoch
;
}
public
void
setLastUpdatedEpoch
(
Integer
lastUpdatedEpoch
)
{
this
.
lastUpdatedEpoch
=
lastUpdatedEpoch
;
}
public
Current
lastUpdated
(
String
lastUpdated
)
{
this
.
lastUpdated
=
lastUpdated
;
return
this
;
}
/**
* last updated
*
* @return lastUpdated
**/
@Schema
(
example
=
"2001-10-09 10:07"
,
description
=
"last updated"
)
@NotNull
public
String
getLastUpdated
()
{
return
lastUpdated
;
}
public
void
setLastUpdated
(
String
lastUpdated
)
{
this
.
lastUpdated
=
lastUpdated
;
}
public
Current
tempC
(
BigDecimal
tempC
)
{
this
.
tempC
=
tempC
;
return
this
;
}
/**
* temperature celcius
*
* @return tempC
**/
@Schema
(
example
=
"8.3"
,
description
=
"temperature celcius"
)
@NotNull
@Valid
public
BigDecimal
getTempC
()
{
return
tempC
;
}
public
void
setTempC
(
BigDecimal
tempC
)
{
this
.
tempC
=
tempC
;
}
public
Current
tempF
(
BigDecimal
tempF
)
{
this
.
tempF
=
tempF
;
return
this
;
}
/**
* temperature fahrenheit
*
* @return tempF
**/
@Schema
(
example
=
"8.8"
,
description
=
"temperature fahrenheit"
)
@NotNull
@Valid
public
BigDecimal
getTempF
()
{
return
tempF
;
}
public
void
setTempF
(
BigDecimal
tempF
)
{
this
.
tempF
=
tempF
;
}
public
Current
idDay
(
BigDecimal
idDay
)
{
this
.
idDay
=
idDay
;
return
this
;
}
/**
* day id
*
* @return idDay
**/
@Schema
(
example
=
"803.29"
,
description
=
"day id"
)
@NotNull
@Valid
public
BigDecimal
getIdDay
()
{
return
idDay
;
}
public
void
setIdDay
(
BigDecimal
idDay
)
{
this
.
idDay
=
idDay
;
}
public
Current
condition
(
WeatherCondition
condition
)
{
this
.
condition
=
condition
;
return
this
;
}
/**
* Get condition
*
* @return condition
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
WeatherCondition
getCondition
()
{
return
condition
;
}
public
void
setCondition
(
WeatherCondition
condition
)
{
this
.
condition
=
condition
;
}
public
Current
windMph
(
BigDecimal
windMph
)
{
this
.
windMph
=
windMph
;
return
this
;
}
/**
* Get windMph
*
* @return windMph
**/
@Schema
(
example
=
"80.39"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getWindMph
()
{
return
windMph
;
}
public
void
setWindMph
(
BigDecimal
windMph
)
{
this
.
windMph
=
windMph
;
}
public
Current
windKph
(
BigDecimal
windKph
)
{
this
.
windKph
=
windKph
;
return
this
;
}
/**
* Get windKph
*
* @return windKph
**/
@Schema
(
example
=
"803.29"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getWindKph
()
{
return
windKph
;
}
public
void
setWindKph
(
BigDecimal
windKph
)
{
this
.
windKph
=
windKph
;
}
public
Current
windDegree
(
Integer
windDegree
)
{
this
.
windDegree
=
windDegree
;
return
this
;
}
/**
* Get windDegree
*
* @return windDegree
**/
@Schema
(
example
=
"803234"
,
description
=
""
)
@NotNull
public
Integer
getWindDegree
()
{
return
windDegree
;
}
public
void
setWindDegree
(
Integer
windDegree
)
{
this
.
windDegree
=
windDegree
;
}
public
Current
windDir
(
String
windDir
)
{
this
.
windDir
=
windDir
;
return
this
;
}
/**
* Get windDir
*
* @return windDir
**/
@Schema
(
example
=
"SSE"
,
description
=
""
)
@NotNull
public
String
getWindDir
()
{
return
windDir
;
}
public
void
setWindDir
(
String
windDir
)
{
this
.
windDir
=
windDir
;
}
public
Current
pressureMb
(
BigDecimal
pressureMb
)
{
this
.
pressureMb
=
pressureMb
;
return
this
;
}
/**
* Get pressureMb
*
* @return pressureMb
**/
@Schema
(
example
=
"86.5"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getPressureMb
()
{
return
pressureMb
;
}
public
void
setPressureMb
(
BigDecimal
pressureMb
)
{
this
.
pressureMb
=
pressureMb
;
}
public
Current
pressureIn
(
BigDecimal
pressureIn
)
{
this
.
pressureIn
=
pressureIn
;
return
this
;
}
/**
* Get pressureIn
*
* @return pressureIn
**/
@Schema
(
example
=
"803.3841"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getPressureIn
()
{
return
pressureIn
;
}
public
void
setPressureIn
(
BigDecimal
pressureIn
)
{
this
.
pressureIn
=
pressureIn
;
}
public
Current
precipMm
(
BigDecimal
precipMm
)
{
this
.
precipMm
=
precipMm
;
return
this
;
}
/**
* Get precipMm
*
* @return precipMm
**/
@Schema
(
example
=
"803.438"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getPrecipMm
()
{
return
precipMm
;
}
public
void
setPrecipMm
(
BigDecimal
precipMm
)
{
this
.
precipMm
=
precipMm
;
}
public
Current
precipIn
(
BigDecimal
precipIn
)
{
this
.
precipIn
=
precipIn
;
return
this
;
}
/**
* Get precipIn
*
* @return precipIn
**/
@Schema
(
example
=
"803.473"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getPrecipIn
()
{
return
precipIn
;
}
public
void
setPrecipIn
(
BigDecimal
precipIn
)
{
this
.
precipIn
=
precipIn
;
}
public
Current
humidity
(
Integer
humidity
)
{
this
.
humidity
=
humidity
;
return
this
;
}
/**
* Get humidity
*
* @return humidity
**/
@Schema
(
example
=
"8039"
,
description
=
""
)
@NotNull
public
Integer
getHumidity
()
{
return
humidity
;
}
public
void
setHumidity
(
Integer
humidity
)
{
this
.
humidity
=
humidity
;
}
public
Current
cloud
(
Integer
cloud
)
{
this
.
cloud
=
cloud
;
return
this
;
}
/**
* Get cloud
*
* @return cloud
**/
@Schema
(
example
=
"80338"
,
description
=
""
)
@NotNull
public
Integer
getCloud
()
{
return
cloud
;
}
public
void
setCloud
(
Integer
cloud
)
{
this
.
cloud
=
cloud
;
}
public
Current
feelslikeC
(
BigDecimal
feelslikeC
)
{
this
.
feelslikeC
=
feelslikeC
;
return
this
;
}
/**
* Get feelslikeC
*
* @return feelslikeC
**/
@Schema
(
example
=
"803.463"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getFeelslikeC
()
{
return
feelslikeC
;
}
public
void
setFeelslikeC
(
BigDecimal
feelslikeC
)
{
this
.
feelslikeC
=
feelslikeC
;
}
public
Current
feelslikeF
(
BigDecimal
feelslikeF
)
{
this
.
feelslikeF
=
feelslikeF
;
return
this
;
}
/**
* Get feelslikeF
*
* @return feelslikeF
**/
@Schema
(
example
=
"803.463"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getFeelslikeF
()
{
return
feelslikeF
;
}
public
void
setFeelslikeF
(
BigDecimal
feelslikeF
)
{
this
.
feelslikeF
=
feelslikeF
;
}
public
Current
windchillC
(
BigDecimal
windchillC
)
{
this
.
windchillC
=
windchillC
;
return
this
;
}
/**
* Get windchillC
*
* @return windchillC
**/
@Schema
(
example
=
"803.367"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getWindchillC
()
{
return
windchillC
;
}
public
void
setWindchillC
(
BigDecimal
windchillC
)
{
this
.
windchillC
=
windchillC
;
}
public
Current
windchillF
(
BigDecimal
windchillF
)
{
this
.
windchillF
=
windchillF
;
return
this
;
}
/**
* Get windchillF
*
* @return windchillF
**/
@Schema
(
example
=
"803.478"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getWindchillF
()
{
return
windchillF
;
}
public
void
setWindchillF
(
BigDecimal
windchillF
)
{
this
.
windchillF
=
windchillF
;
}
public
Current
heatindexC
(
Integer
heatindexC
)
{
this
.
heatindexC
=
heatindexC
;
return
this
;
}
/**
* Get heatindexC
*
* @return heatindexC
**/
@Schema
(
example
=
"803287"
,
description
=
""
)
@NotNull
public
Integer
getHeatindexC
()
{
return
heatindexC
;
}
public
void
setHeatindexC
(
Integer
heatindexC
)
{
this
.
heatindexC
=
heatindexC
;
}
public
Current
heatindexF
(
BigDecimal
heatindexF
)
{
this
.
heatindexF
=
heatindexF
;
return
this
;
}
/**
* Get heatindexF
*
* @return heatindexF
**/
@Schema
(
example
=
"803.736"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getHeatindexF
()
{
return
heatindexF
;
}
public
void
setHeatindexF
(
BigDecimal
heatindexF
)
{
this
.
heatindexF
=
heatindexF
;
}
public
Current
dewpointC
(
BigDecimal
dewpointC
)
{
this
.
dewpointC
=
dewpointC
;
return
this
;
}
/**
* Get dewpointC
*
* @return dewpointC
**/
@Schema
(
example
=
"803.83"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getDewpointC
()
{
return
dewpointC
;
}
public
void
setDewpointC
(
BigDecimal
dewpointC
)
{
this
.
dewpointC
=
dewpointC
;
}
public
Current
dewpointF
(
BigDecimal
dewpointF
)
{
this
.
dewpointF
=
dewpointF
;
return
this
;
}
/**
* Get dewpointF
*
* @return dewpointF
**/
@Schema
(
example
=
"803.38"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getDewpointF
()
{
return
dewpointF
;
}
public
void
setDewpointF
(
BigDecimal
dewpointF
)
{
this
.
dewpointF
=
dewpointF
;
}
public
Current
visKm
(
BigDecimal
visKm
)
{
this
.
visKm
=
visKm
;
return
this
;
}
/**
* Get visKm
*
* @return visKm
**/
@Schema
(
example
=
"803.37"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getVisKm
()
{
return
visKm
;
}
public
void
setVisKm
(
BigDecimal
visKm
)
{
this
.
visKm
=
visKm
;
}
public
Current
visMiles
(
BigDecimal
visMiles
)
{
this
.
visMiles
=
visMiles
;
return
this
;
}
/**
* Get visMiles
*
* @return visMiles
**/
@Schema
(
example
=
"803.48"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getVisMiles
()
{
return
visMiles
;
}
public
void
setVisMiles
(
BigDecimal
visMiles
)
{
this
.
visMiles
=
visMiles
;
}
public
Current
uv
(
BigDecimal
uv
)
{
this
.
uv
=
uv
;
return
this
;
}
/**
* Get uv
*
* @return uv
**/
@Schema
(
example
=
"803.473"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getUv
()
{
return
uv
;
}
public
void
setUv
(
BigDecimal
uv
)
{
this
.
uv
=
uv
;
}
public
Current
gustMph
(
BigDecimal
gustMph
)
{
this
.
gustMph
=
gustMph
;
return
this
;
}
/**
* Get gustMph
*
* @return gustMph
**/
@Schema
(
example
=
"803.37"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getGustMph
()
{
return
gustMph
;
}
public
void
setGustMph
(
BigDecimal
gustMph
)
{
this
.
gustMph
=
gustMph
;
}
public
Current
gustKph
(
BigDecimal
gustKph
)
{
this
.
gustKph
=
gustKph
;
return
this
;
}
/**
* Get gustKph
*
* @return gustKph
**/
@Schema
(
example
=
"803.3662"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getGustKph
()
{
return
gustKph
;
}
public
void
setGustKph
(
BigDecimal
gustKph
)
{
this
.
gustKph
=
gustKph
;
}
public
Current
airQuality
(
WeatherAirQuality
airQuality
)
{
this
.
airQuality
=
airQuality
;
return
this
;
}
/**
* Get airQuality
*
* @return airQuality
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
WeatherAirQuality
getAirQuality
()
{
return
airQuality
;
}
public
void
setAirQuality
(
WeatherAirQuality
airQuality
)
{
this
.
airQuality
=
airQuality
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Current
weather
=
(
Current
)
o
;
return
Objects
.
equals
(
this
.
lastUpdatedEpoch
,
weather
.
lastUpdatedEpoch
)
&&
Objects
.
equals
(
this
.
lastUpdated
,
weather
.
lastUpdated
)
&&
Objects
.
equals
(
this
.
tempC
,
weather
.
tempC
)
&&
Objects
.
equals
(
this
.
tempF
,
weather
.
tempF
)
&&
Objects
.
equals
(
this
.
idDay
,
weather
.
idDay
)
&&
Objects
.
equals
(
this
.
condition
,
weather
.
condition
)
&&
Objects
.
equals
(
this
.
windMph
,
weather
.
windMph
)
&&
Objects
.
equals
(
this
.
windKph
,
weather
.
windKph
)
&&
Objects
.
equals
(
this
.
windDegree
,
weather
.
windDegree
)
&&
Objects
.
equals
(
this
.
windDir
,
weather
.
windDir
)
&&
Objects
.
equals
(
this
.
pressureMb
,
weather
.
pressureMb
)
&&
Objects
.
equals
(
this
.
pressureIn
,
weather
.
pressureIn
)
&&
Objects
.
equals
(
this
.
precipMm
,
weather
.
precipMm
)
&&
Objects
.
equals
(
this
.
precipIn
,
weather
.
precipIn
)
&&
Objects
.
equals
(
this
.
humidity
,
weather
.
humidity
)
&&
Objects
.
equals
(
this
.
cloud
,
weather
.
cloud
)
&&
Objects
.
equals
(
this
.
feelslikeC
,
weather
.
feelslikeC
)
&&
Objects
.
equals
(
this
.
feelslikeF
,
weather
.
feelslikeF
)
&&
Objects
.
equals
(
this
.
windchillC
,
weather
.
windchillC
)
&&
Objects
.
equals
(
this
.
windchillF
,
weather
.
windchillF
)
&&
Objects
.
equals
(
this
.
heatindexC
,
weather
.
heatindexC
)
&&
Objects
.
equals
(
this
.
heatindexF
,
weather
.
heatindexF
)
&&
Objects
.
equals
(
this
.
dewpointC
,
weather
.
dewpointC
)
&&
Objects
.
equals
(
this
.
dewpointF
,
weather
.
dewpointF
)
&&
Objects
.
equals
(
this
.
visKm
,
weather
.
visKm
)
&&
Objects
.
equals
(
this
.
visMiles
,
weather
.
visMiles
)
&&
Objects
.
equals
(
this
.
uv
,
weather
.
uv
)
&&
Objects
.
equals
(
this
.
gustMph
,
weather
.
gustMph
)
&&
Objects
.
equals
(
this
.
gustKph
,
weather
.
gustKph
)
&&
Objects
.
equals
(
this
.
airQuality
,
weather
.
airQuality
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
lastUpdatedEpoch
,
lastUpdated
,
tempC
,
tempF
,
idDay
,
condition
,
windMph
,
windKph
,
windDegree
,
windDir
,
pressureMb
,
pressureIn
,
precipMm
,
precipIn
,
humidity
,
cloud
,
feelslikeC
,
feelslikeF
,
windchillC
,
windchillF
,
heatindexC
,
heatindexF
,
dewpointC
,
dewpointF
,
visKm
,
visMiles
,
uv
,
gustMph
,
gustKph
,
airQuality
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Weather {\n"
);
sb
.
append
(
" lastUpdatedEpoch: "
).
append
(
toIndentedString
(
lastUpdatedEpoch
)).
append
(
"\n"
);
sb
.
append
(
" lastUpdated: "
).
append
(
toIndentedString
(
lastUpdated
)).
append
(
"\n"
);
sb
.
append
(
" tempC: "
).
append
(
toIndentedString
(
tempC
)).
append
(
"\n"
);
sb
.
append
(
" tempF: "
).
append
(
toIndentedString
(
tempF
)).
append
(
"\n"
);
sb
.
append
(
" idDay: "
).
append
(
toIndentedString
(
idDay
)).
append
(
"\n"
);
sb
.
append
(
" condition: "
).
append
(
toIndentedString
(
condition
)).
append
(
"\n"
);
sb
.
append
(
" windMph: "
).
append
(
toIndentedString
(
windMph
)).
append
(
"\n"
);
sb
.
append
(
" windKph: "
).
append
(
toIndentedString
(
windKph
)).
append
(
"\n"
);
sb
.
append
(
" windDegree: "
).
append
(
toIndentedString
(
windDegree
)).
append
(
"\n"
);
sb
.
append
(
" windDir: "
).
append
(
toIndentedString
(
windDir
)).
append
(
"\n"
);
sb
.
append
(
" pressureMb: "
).
append
(
toIndentedString
(
pressureMb
)).
append
(
"\n"
);
sb
.
append
(
" pressureIn: "
).
append
(
toIndentedString
(
pressureIn
)).
append
(
"\n"
);
sb
.
append
(
" precipMm: "
).
append
(
toIndentedString
(
precipMm
)).
append
(
"\n"
);
sb
.
append
(
" precipIn: "
).
append
(
toIndentedString
(
precipIn
)).
append
(
"\n"
);
sb
.
append
(
" humidity: "
).
append
(
toIndentedString
(
humidity
)).
append
(
"\n"
);
sb
.
append
(
" cloud: "
).
append
(
toIndentedString
(
cloud
)).
append
(
"\n"
);
sb
.
append
(
" feelslikeC: "
).
append
(
toIndentedString
(
feelslikeC
)).
append
(
"\n"
);
sb
.
append
(
" feelslikeF: "
).
append
(
toIndentedString
(
feelslikeF
)).
append
(
"\n"
);
sb
.
append
(
" windchillC: "
).
append
(
toIndentedString
(
windchillC
)).
append
(
"\n"
);
sb
.
append
(
" windchillF: "
).
append
(
toIndentedString
(
windchillF
)).
append
(
"\n"
);
sb
.
append
(
" heatindexC: "
).
append
(
toIndentedString
(
heatindexC
)).
append
(
"\n"
);
sb
.
append
(
" heatindexF: "
).
append
(
toIndentedString
(
heatindexF
)).
append
(
"\n"
);
sb
.
append
(
" dewpointC: "
).
append
(
toIndentedString
(
dewpointC
)).
append
(
"\n"
);
sb
.
append
(
" dewpointF: "
).
append
(
toIndentedString
(
dewpointF
)).
append
(
"\n"
);
sb
.
append
(
" visKm: "
).
append
(
toIndentedString
(
visKm
)).
append
(
"\n"
);
sb
.
append
(
" visMiles: "
).
append
(
toIndentedString
(
visMiles
)).
append
(
"\n"
);
sb
.
append
(
" uv: "
).
append
(
toIndentedString
(
uv
)).
append
(
"\n"
);
sb
.
append
(
" gustMph: "
).
append
(
toIndentedString
(
gustMph
)).
append
(
"\n"
);
sb
.
append
(
" gustKph: "
).
append
(
toIndentedString
(
gustKph
)).
append
(
"\n"
);
sb
.
append
(
" airQuality: "
).
append
(
toIndentedString
(
airQuality
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/DayCondition.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* DayCondition
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
DayCondition
{
@JsonProperty
(
"maxtemp_c"
)
private
Float
maxtempC
=
null
;
@JsonProperty
(
"maxtemp_f"
)
private
Float
maxtempF
=
null
;
@JsonProperty
(
"mintemp_c"
)
private
Float
mintempC
=
null
;
@JsonProperty
(
"mintemp_f"
)
private
Float
mintempF
=
null
;
@JsonProperty
(
"avgtemp_c"
)
private
Float
avgtempC
=
null
;
@JsonProperty
(
"avgtemp_f"
)
private
Float
avgtempF
=
null
;
@JsonProperty
(
"maxwind_mph"
)
private
Float
maxwindMph
=
null
;
@JsonProperty
(
"maxwind_kph"
)
private
Float
maxwindKph
=
null
;
@JsonProperty
(
"totalprecip_mm"
)
private
Float
totalprecipMm
=
null
;
@JsonProperty
(
"totalprecip_in"
)
private
Float
totalprecipIn
=
null
;
@JsonProperty
(
"avgvis_km"
)
private
Float
avgvisKm
=
null
;
@JsonProperty
(
"avgvis_miles"
)
private
Float
avgvisMiles
=
null
;
@JsonProperty
(
"avghumidity"
)
private
Integer
avghumidity
=
null
;
@JsonProperty
(
"daily_will_it_rain"
)
private
Integer
dailyWillItRain
=
null
;
@JsonProperty
(
"daily_chance_of_rain"
)
private
Integer
dailyChanceOfRain
=
null
;
@JsonProperty
(
"daily_will_it_snow"
)
private
Integer
dailyWillItSnow
=
null
;
@JsonProperty
(
"daily_chance_of_snow"
)
private
Integer
dailyChanceOfSnow
=
null
;
@JsonProperty
(
"uv"
)
private
Float
uv
=
null
;
public
DayCondition
maxtempC
(
Float
maxtempC
)
{
this
.
maxtempC
=
maxtempC
;
return
this
;
}
/**
* Get maxtempC
* @return maxtempC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getMaxtempC
()
{
return
maxtempC
;
}
public
void
setMaxtempC
(
Float
maxtempC
)
{
this
.
maxtempC
=
maxtempC
;
}
public
DayCondition
maxtempF
(
Float
maxtempF
)
{
this
.
maxtempF
=
maxtempF
;
return
this
;
}
/**
* Get maxtempF
* @return maxtempF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getMaxtempF
()
{
return
maxtempF
;
}
public
void
setMaxtempF
(
Float
maxtempF
)
{
this
.
maxtempF
=
maxtempF
;
}
public
DayCondition
mintempC
(
Float
mintempC
)
{
this
.
mintempC
=
mintempC
;
return
this
;
}
/**
* Get mintempC
* @return mintempC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getMintempC
()
{
return
mintempC
;
}
public
void
setMintempC
(
Float
mintempC
)
{
this
.
mintempC
=
mintempC
;
}
public
DayCondition
mintempF
(
Float
mintempF
)
{
this
.
mintempF
=
mintempF
;
return
this
;
}
/**
* Get mintempF
* @return mintempF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getMintempF
()
{
return
mintempF
;
}
public
void
setMintempF
(
Float
mintempF
)
{
this
.
mintempF
=
mintempF
;
}
public
DayCondition
avgtempC
(
Float
avgtempC
)
{
this
.
avgtempC
=
avgtempC
;
return
this
;
}
/**
* Get avgtempC
* @return avgtempC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getAvgtempC
()
{
return
avgtempC
;
}
public
void
setAvgtempC
(
Float
avgtempC
)
{
this
.
avgtempC
=
avgtempC
;
}
public
DayCondition
avgtempF
(
Float
avgtempF
)
{
this
.
avgtempF
=
avgtempF
;
return
this
;
}
/**
* Get avgtempF
* @return avgtempF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getAvgtempF
()
{
return
avgtempF
;
}
public
void
setAvgtempF
(
Float
avgtempF
)
{
this
.
avgtempF
=
avgtempF
;
}
public
DayCondition
maxwindMph
(
Float
maxwindMph
)
{
this
.
maxwindMph
=
maxwindMph
;
return
this
;
}
/**
* Get maxwindMph
* @return maxwindMph
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getMaxwindMph
()
{
return
maxwindMph
;
}
public
void
setMaxwindMph
(
Float
maxwindMph
)
{
this
.
maxwindMph
=
maxwindMph
;
}
public
DayCondition
maxwindKph
(
Float
maxwindKph
)
{
this
.
maxwindKph
=
maxwindKph
;
return
this
;
}
/**
* Get maxwindKph
* @return maxwindKph
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getMaxwindKph
()
{
return
maxwindKph
;
}
public
void
setMaxwindKph
(
Float
maxwindKph
)
{
this
.
maxwindKph
=
maxwindKph
;
}
public
DayCondition
totalprecipMm
(
Float
totalprecipMm
)
{
this
.
totalprecipMm
=
totalprecipMm
;
return
this
;
}
/**
* Get totalprecipMm
* @return totalprecipMm
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getTotalprecipMm
()
{
return
totalprecipMm
;
}
public
void
setTotalprecipMm
(
Float
totalprecipMm
)
{
this
.
totalprecipMm
=
totalprecipMm
;
}
public
DayCondition
totalprecipIn
(
Float
totalprecipIn
)
{
this
.
totalprecipIn
=
totalprecipIn
;
return
this
;
}
/**
* Get totalprecipIn
* @return totalprecipIn
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getTotalprecipIn
()
{
return
totalprecipIn
;
}
public
void
setTotalprecipIn
(
Float
totalprecipIn
)
{
this
.
totalprecipIn
=
totalprecipIn
;
}
public
DayCondition
avgvisKm
(
Float
avgvisKm
)
{
this
.
avgvisKm
=
avgvisKm
;
return
this
;
}
/**
* Get avgvisKm
* @return avgvisKm
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getAvgvisKm
()
{
return
avgvisKm
;
}
public
void
setAvgvisKm
(
Float
avgvisKm
)
{
this
.
avgvisKm
=
avgvisKm
;
}
public
DayCondition
avgvisMiles
(
Float
avgvisMiles
)
{
this
.
avgvisMiles
=
avgvisMiles
;
return
this
;
}
/**
* Get avgvisMiles
* @return avgvisMiles
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getAvgvisMiles
()
{
return
avgvisMiles
;
}
public
void
setAvgvisMiles
(
Float
avgvisMiles
)
{
this
.
avgvisMiles
=
avgvisMiles
;
}
public
DayCondition
avghumidity
(
Integer
avghumidity
)
{
this
.
avghumidity
=
avghumidity
;
return
this
;
}
/**
* Get avghumidity
* @return avghumidity
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getAvghumidity
()
{
return
avghumidity
;
}
public
void
setAvghumidity
(
Integer
avghumidity
)
{
this
.
avghumidity
=
avghumidity
;
}
public
DayCondition
dailyWillItRain
(
Integer
dailyWillItRain
)
{
this
.
dailyWillItRain
=
dailyWillItRain
;
return
this
;
}
/**
* Get dailyWillItRain
* @return dailyWillItRain
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getDailyWillItRain
()
{
return
dailyWillItRain
;
}
public
void
setDailyWillItRain
(
Integer
dailyWillItRain
)
{
this
.
dailyWillItRain
=
dailyWillItRain
;
}
public
DayCondition
dailyChanceOfRain
(
Integer
dailyChanceOfRain
)
{
this
.
dailyChanceOfRain
=
dailyChanceOfRain
;
return
this
;
}
/**
* Get dailyChanceOfRain
* @return dailyChanceOfRain
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getDailyChanceOfRain
()
{
return
dailyChanceOfRain
;
}
public
void
setDailyChanceOfRain
(
Integer
dailyChanceOfRain
)
{
this
.
dailyChanceOfRain
=
dailyChanceOfRain
;
}
public
DayCondition
dailyWillItSnow
(
Integer
dailyWillItSnow
)
{
this
.
dailyWillItSnow
=
dailyWillItSnow
;
return
this
;
}
/**
* Get dailyWillItSnow
* @return dailyWillItSnow
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getDailyWillItSnow
()
{
return
dailyWillItSnow
;
}
public
void
setDailyWillItSnow
(
Integer
dailyWillItSnow
)
{
this
.
dailyWillItSnow
=
dailyWillItSnow
;
}
public
DayCondition
dailyChanceOfSnow
(
Integer
dailyChanceOfSnow
)
{
this
.
dailyChanceOfSnow
=
dailyChanceOfSnow
;
return
this
;
}
/**
* Get dailyChanceOfSnow
* @return dailyChanceOfSnow
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getDailyChanceOfSnow
()
{
return
dailyChanceOfSnow
;
}
public
void
setDailyChanceOfSnow
(
Integer
dailyChanceOfSnow
)
{
this
.
dailyChanceOfSnow
=
dailyChanceOfSnow
;
}
public
DayCondition
uv
(
Float
uv
)
{
this
.
uv
=
uv
;
return
this
;
}
/**
* Get uv
* @return uv
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getUv
()
{
return
uv
;
}
public
void
setUv
(
Float
uv
)
{
this
.
uv
=
uv
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
DayCondition
dayCondition
=
(
DayCondition
)
o
;
return
Objects
.
equals
(
this
.
maxtempC
,
dayCondition
.
maxtempC
)
&&
Objects
.
equals
(
this
.
maxtempF
,
dayCondition
.
maxtempF
)
&&
Objects
.
equals
(
this
.
mintempC
,
dayCondition
.
mintempC
)
&&
Objects
.
equals
(
this
.
mintempF
,
dayCondition
.
mintempF
)
&&
Objects
.
equals
(
this
.
avgtempC
,
dayCondition
.
avgtempC
)
&&
Objects
.
equals
(
this
.
avgtempF
,
dayCondition
.
avgtempF
)
&&
Objects
.
equals
(
this
.
maxwindMph
,
dayCondition
.
maxwindMph
)
&&
Objects
.
equals
(
this
.
maxwindKph
,
dayCondition
.
maxwindKph
)
&&
Objects
.
equals
(
this
.
totalprecipMm
,
dayCondition
.
totalprecipMm
)
&&
Objects
.
equals
(
this
.
totalprecipIn
,
dayCondition
.
totalprecipIn
)
&&
Objects
.
equals
(
this
.
avgvisKm
,
dayCondition
.
avgvisKm
)
&&
Objects
.
equals
(
this
.
avgvisMiles
,
dayCondition
.
avgvisMiles
)
&&
Objects
.
equals
(
this
.
avghumidity
,
dayCondition
.
avghumidity
)
&&
Objects
.
equals
(
this
.
dailyWillItRain
,
dayCondition
.
dailyWillItRain
)
&&
Objects
.
equals
(
this
.
dailyChanceOfRain
,
dayCondition
.
dailyChanceOfRain
)
&&
Objects
.
equals
(
this
.
dailyWillItSnow
,
dayCondition
.
dailyWillItSnow
)
&&
Objects
.
equals
(
this
.
dailyChanceOfSnow
,
dayCondition
.
dailyChanceOfSnow
)
&&
Objects
.
equals
(
this
.
uv
,
dayCondition
.
uv
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
maxtempC
,
maxtempF
,
mintempC
,
mintempF
,
avgtempC
,
avgtempF
,
maxwindMph
,
maxwindKph
,
totalprecipMm
,
totalprecipIn
,
avgvisKm
,
avgvisMiles
,
avghumidity
,
dailyWillItRain
,
dailyChanceOfRain
,
dailyWillItSnow
,
dailyChanceOfSnow
,
uv
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class DayCondition {\n"
);
sb
.
append
(
" maxtempC: "
).
append
(
toIndentedString
(
maxtempC
)).
append
(
"\n"
);
sb
.
append
(
" maxtempF: "
).
append
(
toIndentedString
(
maxtempF
)).
append
(
"\n"
);
sb
.
append
(
" mintempC: "
).
append
(
toIndentedString
(
mintempC
)).
append
(
"\n"
);
sb
.
append
(
" mintempF: "
).
append
(
toIndentedString
(
mintempF
)).
append
(
"\n"
);
sb
.
append
(
" avgtempC: "
).
append
(
toIndentedString
(
avgtempC
)).
append
(
"\n"
);
sb
.
append
(
" avgtempF: "
).
append
(
toIndentedString
(
avgtempF
)).
append
(
"\n"
);
sb
.
append
(
" maxwindMph: "
).
append
(
toIndentedString
(
maxwindMph
)).
append
(
"\n"
);
sb
.
append
(
" maxwindKph: "
).
append
(
toIndentedString
(
maxwindKph
)).
append
(
"\n"
);
sb
.
append
(
" totalprecipMm: "
).
append
(
toIndentedString
(
totalprecipMm
)).
append
(
"\n"
);
sb
.
append
(
" totalprecipIn: "
).
append
(
toIndentedString
(
totalprecipIn
)).
append
(
"\n"
);
sb
.
append
(
" avgvisKm: "
).
append
(
toIndentedString
(
avgvisKm
)).
append
(
"\n"
);
sb
.
append
(
" avgvisMiles: "
).
append
(
toIndentedString
(
avgvisMiles
)).
append
(
"\n"
);
sb
.
append
(
" avghumidity: "
).
append
(
toIndentedString
(
avghumidity
)).
append
(
"\n"
);
sb
.
append
(
" dailyWillItRain: "
).
append
(
toIndentedString
(
dailyWillItRain
)).
append
(
"\n"
);
sb
.
append
(
" dailyChanceOfRain: "
).
append
(
toIndentedString
(
dailyChanceOfRain
)).
append
(
"\n"
);
sb
.
append
(
" dailyWillItSnow: "
).
append
(
toIndentedString
(
dailyWillItSnow
)).
append
(
"\n"
);
sb
.
append
(
" dailyChanceOfSnow: "
).
append
(
toIndentedString
(
dailyChanceOfSnow
)).
append
(
"\n"
);
sb
.
append
(
" uv: "
).
append
(
toIndentedString
(
uv
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/ForecastDay.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.model.Astro
;
import
io.swagger.model.DayCondition
;
import
io.swagger.model.HourCondition
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* ForecastDay
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
ForecastDay
{
@JsonProperty
(
"date"
)
private
String
date
=
null
;
@JsonProperty
(
"date_epoch"
)
private
Integer
dateEpoch
=
null
;
@JsonProperty
(
"day"
)
private
DayCondition
day
=
null
;
@JsonProperty
(
"astro"
)
private
Astro
astro
=
null
;
@JsonProperty
(
"hour"
)
@Valid
private
List
<
HourCondition
>
hour
=
null
;
public
ForecastDay
date
(
String
date
)
{
this
.
date
=
date
;
return
this
;
}
/**
* Get date
* @return date
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
ForecastDay
dateEpoch
(
Integer
dateEpoch
)
{
this
.
dateEpoch
=
dateEpoch
;
return
this
;
}
/**
* Get dateEpoch
* @return dateEpoch
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getDateEpoch
()
{
return
dateEpoch
;
}
public
void
setDateEpoch
(
Integer
dateEpoch
)
{
this
.
dateEpoch
=
dateEpoch
;
}
public
ForecastDay
day
(
DayCondition
day
)
{
this
.
day
=
day
;
return
this
;
}
/**
* Get day
* @return day
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
DayCondition
getDay
()
{
return
day
;
}
public
void
setDay
(
DayCondition
day
)
{
this
.
day
=
day
;
}
public
ForecastDay
astro
(
Astro
astro
)
{
this
.
astro
=
astro
;
return
this
;
}
/**
* Get astro
* @return astro
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
Astro
getAstro
()
{
return
astro
;
}
public
void
setAstro
(
Astro
astro
)
{
this
.
astro
=
astro
;
}
public
ForecastDay
hour
(
List
<
HourCondition
>
hour
)
{
this
.
hour
=
hour
;
return
this
;
}
public
ForecastDay
addHourItem
(
HourCondition
hourItem
)
{
if
(
this
.
hour
==
null
)
{
this
.
hour
=
new
ArrayList
<
HourCondition
>();
}
this
.
hour
.
add
(
hourItem
);
return
this
;
}
/**
* Get hour
* @return hour
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
List
<
HourCondition
>
getHour
()
{
return
hour
;
}
public
void
setHour
(
List
<
HourCondition
>
hour
)
{
this
.
hour
=
hour
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
ForecastDay
forecastDay
=
(
ForecastDay
)
o
;
return
Objects
.
equals
(
this
.
date
,
forecastDay
.
date
)
&&
Objects
.
equals
(
this
.
dateEpoch
,
forecastDay
.
dateEpoch
)
&&
Objects
.
equals
(
this
.
day
,
forecastDay
.
day
)
&&
Objects
.
equals
(
this
.
astro
,
forecastDay
.
astro
)
&&
Objects
.
equals
(
this
.
hour
,
forecastDay
.
hour
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
date
,
dateEpoch
,
day
,
astro
,
hour
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class ForecastDay {\n"
);
sb
.
append
(
" date: "
).
append
(
toIndentedString
(
date
)).
append
(
"\n"
);
sb
.
append
(
" dateEpoch: "
).
append
(
toIndentedString
(
dateEpoch
)).
append
(
"\n"
);
sb
.
append
(
" day: "
).
append
(
toIndentedString
(
day
)).
append
(
"\n"
);
sb
.
append
(
" astro: "
).
append
(
toIndentedString
(
astro
)).
append
(
"\n"
);
sb
.
append
(
" hour: "
).
append
(
toIndentedString
(
hour
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/HourCondition.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* HourCondition
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
HourCondition
{
@JsonProperty
(
"time_epoch"
)
private
Integer
timeEpoch
=
null
;
@JsonProperty
(
"time"
)
private
String
time
=
null
;
@JsonProperty
(
"temp_c"
)
private
Float
tempC
=
null
;
@JsonProperty
(
"temp_f"
)
private
Float
tempF
=
null
;
@JsonProperty
(
"is_day"
)
private
Integer
isDay
=
null
;
@JsonProperty
(
"wind_mph"
)
private
Float
windMph
=
null
;
@JsonProperty
(
"wind_kph"
)
private
Float
windKph
=
null
;
@JsonProperty
(
"wind_degree"
)
private
Integer
windDegree
=
null
;
@JsonProperty
(
"wind_dir"
)
private
String
windDir
=
null
;
@JsonProperty
(
"pressure_mb"
)
private
Float
pressureMb
=
null
;
@JsonProperty
(
"pressure_in"
)
private
Float
pressureIn
=
null
;
@JsonProperty
(
"precip_mm"
)
private
Float
precipMm
=
null
;
@JsonProperty
(
"precip_in"
)
private
Float
precipIn
=
null
;
@JsonProperty
(
"humidity"
)
private
Integer
humidity
=
null
;
@JsonProperty
(
"cloud"
)
private
Integer
cloud
=
null
;
@JsonProperty
(
"feelslike_c"
)
private
Float
feelslikeC
=
null
;
@JsonProperty
(
"feelslike_f"
)
private
Float
feelslikeF
=
null
;
@JsonProperty
(
"windchill_c"
)
private
Float
windchillC
=
null
;
@JsonProperty
(
"windchill_f"
)
private
Float
windchillF
=
null
;
@JsonProperty
(
"heatindex_c"
)
private
Float
heatindexC
=
null
;
@JsonProperty
(
"heatindex_f"
)
private
Float
heatindexF
=
null
;
@JsonProperty
(
"dewpoint_c"
)
private
Float
dewpointC
=
null
;
@JsonProperty
(
"dewpoint_f"
)
private
Float
dewpointF
=
null
;
@JsonProperty
(
"will_it_rain"
)
private
Integer
willItRain
=
null
;
@JsonProperty
(
"chance_of_rain"
)
private
Integer
chanceOfRain
=
null
;
@JsonProperty
(
"will_it_snow"
)
private
Integer
willItSnow
=
null
;
@JsonProperty
(
"chance_of_snow"
)
private
Integer
chanceOfSnow
=
null
;
@JsonProperty
(
"vis_km"
)
private
Float
visKm
=
null
;
@JsonProperty
(
"vis_miles"
)
private
Float
visMiles
=
null
;
@JsonProperty
(
"gust_mph"
)
private
Float
gustMph
=
null
;
@JsonProperty
(
"gust_kph"
)
private
Float
gustKph
=
null
;
@JsonProperty
(
"uv"
)
private
Float
uv
=
null
;
public
HourCondition
timeEpoch
(
Integer
timeEpoch
)
{
this
.
timeEpoch
=
timeEpoch
;
return
this
;
}
/**
* Get timeEpoch
* @return timeEpoch
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getTimeEpoch
()
{
return
timeEpoch
;
}
public
void
setTimeEpoch
(
Integer
timeEpoch
)
{
this
.
timeEpoch
=
timeEpoch
;
}
public
HourCondition
time
(
String
time
)
{
this
.
time
=
time
;
return
this
;
}
/**
* Get time
* @return time
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
HourCondition
tempC
(
Float
tempC
)
{
this
.
tempC
=
tempC
;
return
this
;
}
/**
* Get tempC
* @return tempC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getTempC
()
{
return
tempC
;
}
public
void
setTempC
(
Float
tempC
)
{
this
.
tempC
=
tempC
;
}
public
HourCondition
tempF
(
Float
tempF
)
{
this
.
tempF
=
tempF
;
return
this
;
}
/**
* Get tempF
* @return tempF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getTempF
()
{
return
tempF
;
}
public
void
setTempF
(
Float
tempF
)
{
this
.
tempF
=
tempF
;
}
public
HourCondition
isDay
(
Integer
isDay
)
{
this
.
isDay
=
isDay
;
return
this
;
}
/**
* Get isDay
* @return isDay
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getIsDay
()
{
return
isDay
;
}
public
void
setIsDay
(
Integer
isDay
)
{
this
.
isDay
=
isDay
;
}
public
HourCondition
windMph
(
Float
windMph
)
{
this
.
windMph
=
windMph
;
return
this
;
}
/**
* Get windMph
* @return windMph
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getWindMph
()
{
return
windMph
;
}
public
void
setWindMph
(
Float
windMph
)
{
this
.
windMph
=
windMph
;
}
public
HourCondition
windKph
(
Float
windKph
)
{
this
.
windKph
=
windKph
;
return
this
;
}
/**
* Get windKph
* @return windKph
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getWindKph
()
{
return
windKph
;
}
public
void
setWindKph
(
Float
windKph
)
{
this
.
windKph
=
windKph
;
}
public
HourCondition
windDegree
(
Integer
windDegree
)
{
this
.
windDegree
=
windDegree
;
return
this
;
}
/**
* Get windDegree
* @return windDegree
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getWindDegree
()
{
return
windDegree
;
}
public
void
setWindDegree
(
Integer
windDegree
)
{
this
.
windDegree
=
windDegree
;
}
public
HourCondition
windDir
(
String
windDir
)
{
this
.
windDir
=
windDir
;
return
this
;
}
/**
* Get windDir
* @return windDir
**/
@Schema
(
description
=
""
)
@NotNull
public
String
getWindDir
()
{
return
windDir
;
}
public
void
setWindDir
(
String
windDir
)
{
this
.
windDir
=
windDir
;
}
public
HourCondition
pressureMb
(
Float
pressureMb
)
{
this
.
pressureMb
=
pressureMb
;
return
this
;
}
/**
* Get pressureMb
* @return pressureMb
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getPressureMb
()
{
return
pressureMb
;
}
public
void
setPressureMb
(
Float
pressureMb
)
{
this
.
pressureMb
=
pressureMb
;
}
public
HourCondition
pressureIn
(
Float
pressureIn
)
{
this
.
pressureIn
=
pressureIn
;
return
this
;
}
/**
* Get pressureIn
* @return pressureIn
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getPressureIn
()
{
return
pressureIn
;
}
public
void
setPressureIn
(
Float
pressureIn
)
{
this
.
pressureIn
=
pressureIn
;
}
public
HourCondition
precipMm
(
Float
precipMm
)
{
this
.
precipMm
=
precipMm
;
return
this
;
}
/**
* Get precipMm
* @return precipMm
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getPrecipMm
()
{
return
precipMm
;
}
public
void
setPrecipMm
(
Float
precipMm
)
{
this
.
precipMm
=
precipMm
;
}
public
HourCondition
precipIn
(
Float
precipIn
)
{
this
.
precipIn
=
precipIn
;
return
this
;
}
/**
* Get precipIn
* @return precipIn
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getPrecipIn
()
{
return
precipIn
;
}
public
void
setPrecipIn
(
Float
precipIn
)
{
this
.
precipIn
=
precipIn
;
}
public
HourCondition
humidity
(
Integer
humidity
)
{
this
.
humidity
=
humidity
;
return
this
;
}
/**
* Get humidity
* @return humidity
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getHumidity
()
{
return
humidity
;
}
public
void
setHumidity
(
Integer
humidity
)
{
this
.
humidity
=
humidity
;
}
public
HourCondition
cloud
(
Integer
cloud
)
{
this
.
cloud
=
cloud
;
return
this
;
}
/**
* Get cloud
* @return cloud
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getCloud
()
{
return
cloud
;
}
public
void
setCloud
(
Integer
cloud
)
{
this
.
cloud
=
cloud
;
}
public
HourCondition
feelslikeC
(
Float
feelslikeC
)
{
this
.
feelslikeC
=
feelslikeC
;
return
this
;
}
/**
* Get feelslikeC
* @return feelslikeC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getFeelslikeC
()
{
return
feelslikeC
;
}
public
void
setFeelslikeC
(
Float
feelslikeC
)
{
this
.
feelslikeC
=
feelslikeC
;
}
public
HourCondition
feelslikeF
(
Float
feelslikeF
)
{
this
.
feelslikeF
=
feelslikeF
;
return
this
;
}
/**
* Get feelslikeF
* @return feelslikeF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getFeelslikeF
()
{
return
feelslikeF
;
}
public
void
setFeelslikeF
(
Float
feelslikeF
)
{
this
.
feelslikeF
=
feelslikeF
;
}
public
HourCondition
windchillC
(
Float
windchillC
)
{
this
.
windchillC
=
windchillC
;
return
this
;
}
/**
* Get windchillC
* @return windchillC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getWindchillC
()
{
return
windchillC
;
}
public
void
setWindchillC
(
Float
windchillC
)
{
this
.
windchillC
=
windchillC
;
}
public
HourCondition
windchillF
(
Float
windchillF
)
{
this
.
windchillF
=
windchillF
;
return
this
;
}
/**
* Get windchillF
* @return windchillF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getWindchillF
()
{
return
windchillF
;
}
public
void
setWindchillF
(
Float
windchillF
)
{
this
.
windchillF
=
windchillF
;
}
public
HourCondition
heatindexC
(
Float
heatindexC
)
{
this
.
heatindexC
=
heatindexC
;
return
this
;
}
/**
* Get heatindexC
* @return heatindexC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getHeatindexC
()
{
return
heatindexC
;
}
public
void
setHeatindexC
(
Float
heatindexC
)
{
this
.
heatindexC
=
heatindexC
;
}
public
HourCondition
heatindexF
(
Float
heatindexF
)
{
this
.
heatindexF
=
heatindexF
;
return
this
;
}
/**
* Get heatindexF
* @return heatindexF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getHeatindexF
()
{
return
heatindexF
;
}
public
void
setHeatindexF
(
Float
heatindexF
)
{
this
.
heatindexF
=
heatindexF
;
}
public
HourCondition
dewpointC
(
Float
dewpointC
)
{
this
.
dewpointC
=
dewpointC
;
return
this
;
}
/**
* Get dewpointC
* @return dewpointC
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getDewpointC
()
{
return
dewpointC
;
}
public
void
setDewpointC
(
Float
dewpointC
)
{
this
.
dewpointC
=
dewpointC
;
}
public
HourCondition
dewpointF
(
Float
dewpointF
)
{
this
.
dewpointF
=
dewpointF
;
return
this
;
}
/**
* Get dewpointF
* @return dewpointF
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getDewpointF
()
{
return
dewpointF
;
}
public
void
setDewpointF
(
Float
dewpointF
)
{
this
.
dewpointF
=
dewpointF
;
}
public
HourCondition
willItRain
(
Integer
willItRain
)
{
this
.
willItRain
=
willItRain
;
return
this
;
}
/**
* Get willItRain
* @return willItRain
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getWillItRain
()
{
return
willItRain
;
}
public
void
setWillItRain
(
Integer
willItRain
)
{
this
.
willItRain
=
willItRain
;
}
public
HourCondition
chanceOfRain
(
Integer
chanceOfRain
)
{
this
.
chanceOfRain
=
chanceOfRain
;
return
this
;
}
/**
* Get chanceOfRain
* @return chanceOfRain
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getChanceOfRain
()
{
return
chanceOfRain
;
}
public
void
setChanceOfRain
(
Integer
chanceOfRain
)
{
this
.
chanceOfRain
=
chanceOfRain
;
}
public
HourCondition
willItSnow
(
Integer
willItSnow
)
{
this
.
willItSnow
=
willItSnow
;
return
this
;
}
/**
* Get willItSnow
* @return willItSnow
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getWillItSnow
()
{
return
willItSnow
;
}
public
void
setWillItSnow
(
Integer
willItSnow
)
{
this
.
willItSnow
=
willItSnow
;
}
public
HourCondition
chanceOfSnow
(
Integer
chanceOfSnow
)
{
this
.
chanceOfSnow
=
chanceOfSnow
;
return
this
;
}
/**
* Get chanceOfSnow
* @return chanceOfSnow
**/
@Schema
(
description
=
""
)
@NotNull
public
Integer
getChanceOfSnow
()
{
return
chanceOfSnow
;
}
public
void
setChanceOfSnow
(
Integer
chanceOfSnow
)
{
this
.
chanceOfSnow
=
chanceOfSnow
;
}
public
HourCondition
visKm
(
Float
visKm
)
{
this
.
visKm
=
visKm
;
return
this
;
}
/**
* Get visKm
* @return visKm
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getVisKm
()
{
return
visKm
;
}
public
void
setVisKm
(
Float
visKm
)
{
this
.
visKm
=
visKm
;
}
public
HourCondition
visMiles
(
Float
visMiles
)
{
this
.
visMiles
=
visMiles
;
return
this
;
}
/**
* Get visMiles
* @return visMiles
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getVisMiles
()
{
return
visMiles
;
}
public
void
setVisMiles
(
Float
visMiles
)
{
this
.
visMiles
=
visMiles
;
}
public
HourCondition
gustMph
(
Float
gustMph
)
{
this
.
gustMph
=
gustMph
;
return
this
;
}
/**
* Get gustMph
* @return gustMph
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getGustMph
()
{
return
gustMph
;
}
public
void
setGustMph
(
Float
gustMph
)
{
this
.
gustMph
=
gustMph
;
}
public
HourCondition
gustKph
(
Float
gustKph
)
{
this
.
gustKph
=
gustKph
;
return
this
;
}
/**
* Get gustKph
* @return gustKph
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getGustKph
()
{
return
gustKph
;
}
public
void
setGustKph
(
Float
gustKph
)
{
this
.
gustKph
=
gustKph
;
}
public
HourCondition
uv
(
Float
uv
)
{
this
.
uv
=
uv
;
return
this
;
}
/**
* Get uv
* @return uv
**/
@Schema
(
description
=
""
)
@NotNull
public
Float
getUv
()
{
return
uv
;
}
public
void
setUv
(
Float
uv
)
{
this
.
uv
=
uv
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
HourCondition
hourCondition
=
(
HourCondition
)
o
;
return
Objects
.
equals
(
this
.
timeEpoch
,
hourCondition
.
timeEpoch
)
&&
Objects
.
equals
(
this
.
time
,
hourCondition
.
time
)
&&
Objects
.
equals
(
this
.
tempC
,
hourCondition
.
tempC
)
&&
Objects
.
equals
(
this
.
tempF
,
hourCondition
.
tempF
)
&&
Objects
.
equals
(
this
.
isDay
,
hourCondition
.
isDay
)
&&
Objects
.
equals
(
this
.
windMph
,
hourCondition
.
windMph
)
&&
Objects
.
equals
(
this
.
windKph
,
hourCondition
.
windKph
)
&&
Objects
.
equals
(
this
.
windDegree
,
hourCondition
.
windDegree
)
&&
Objects
.
equals
(
this
.
windDir
,
hourCondition
.
windDir
)
&&
Objects
.
equals
(
this
.
pressureMb
,
hourCondition
.
pressureMb
)
&&
Objects
.
equals
(
this
.
pressureIn
,
hourCondition
.
pressureIn
)
&&
Objects
.
equals
(
this
.
precipMm
,
hourCondition
.
precipMm
)
&&
Objects
.
equals
(
this
.
precipIn
,
hourCondition
.
precipIn
)
&&
Objects
.
equals
(
this
.
humidity
,
hourCondition
.
humidity
)
&&
Objects
.
equals
(
this
.
cloud
,
hourCondition
.
cloud
)
&&
Objects
.
equals
(
this
.
feelslikeC
,
hourCondition
.
feelslikeC
)
&&
Objects
.
equals
(
this
.
feelslikeF
,
hourCondition
.
feelslikeF
)
&&
Objects
.
equals
(
this
.
windchillC
,
hourCondition
.
windchillC
)
&&
Objects
.
equals
(
this
.
windchillF
,
hourCondition
.
windchillF
)
&&
Objects
.
equals
(
this
.
heatindexC
,
hourCondition
.
heatindexC
)
&&
Objects
.
equals
(
this
.
heatindexF
,
hourCondition
.
heatindexF
)
&&
Objects
.
equals
(
this
.
dewpointC
,
hourCondition
.
dewpointC
)
&&
Objects
.
equals
(
this
.
dewpointF
,
hourCondition
.
dewpointF
)
&&
Objects
.
equals
(
this
.
willItRain
,
hourCondition
.
willItRain
)
&&
Objects
.
equals
(
this
.
chanceOfRain
,
hourCondition
.
chanceOfRain
)
&&
Objects
.
equals
(
this
.
willItSnow
,
hourCondition
.
willItSnow
)
&&
Objects
.
equals
(
this
.
chanceOfSnow
,
hourCondition
.
chanceOfSnow
)
&&
Objects
.
equals
(
this
.
visKm
,
hourCondition
.
visKm
)
&&
Objects
.
equals
(
this
.
visMiles
,
hourCondition
.
visMiles
)
&&
Objects
.
equals
(
this
.
gustMph
,
hourCondition
.
gustMph
)
&&
Objects
.
equals
(
this
.
gustKph
,
hourCondition
.
gustKph
)
&&
Objects
.
equals
(
this
.
uv
,
hourCondition
.
uv
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
timeEpoch
,
time
,
tempC
,
tempF
,
isDay
,
windMph
,
windKph
,
windDegree
,
windDir
,
pressureMb
,
pressureIn
,
precipMm
,
precipIn
,
humidity
,
cloud
,
feelslikeC
,
feelslikeF
,
windchillC
,
windchillF
,
heatindexC
,
heatindexF
,
dewpointC
,
dewpointF
,
willItRain
,
chanceOfRain
,
willItSnow
,
chanceOfSnow
,
visKm
,
visMiles
,
gustMph
,
gustKph
,
uv
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class HourCondition {\n"
);
sb
.
append
(
" timeEpoch: "
).
append
(
toIndentedString
(
timeEpoch
)).
append
(
"\n"
);
sb
.
append
(
" time: "
).
append
(
toIndentedString
(
time
)).
append
(
"\n"
);
sb
.
append
(
" tempC: "
).
append
(
toIndentedString
(
tempC
)).
append
(
"\n"
);
sb
.
append
(
" tempF: "
).
append
(
toIndentedString
(
tempF
)).
append
(
"\n"
);
sb
.
append
(
" isDay: "
).
append
(
toIndentedString
(
isDay
)).
append
(
"\n"
);
sb
.
append
(
" windMph: "
).
append
(
toIndentedString
(
windMph
)).
append
(
"\n"
);
sb
.
append
(
" windKph: "
).
append
(
toIndentedString
(
windKph
)).
append
(
"\n"
);
sb
.
append
(
" windDegree: "
).
append
(
toIndentedString
(
windDegree
)).
append
(
"\n"
);
sb
.
append
(
" windDir: "
).
append
(
toIndentedString
(
windDir
)).
append
(
"\n"
);
sb
.
append
(
" pressureMb: "
).
append
(
toIndentedString
(
pressureMb
)).
append
(
"\n"
);
sb
.
append
(
" pressureIn: "
).
append
(
toIndentedString
(
pressureIn
)).
append
(
"\n"
);
sb
.
append
(
" precipMm: "
).
append
(
toIndentedString
(
precipMm
)).
append
(
"\n"
);
sb
.
append
(
" precipIn: "
).
append
(
toIndentedString
(
precipIn
)).
append
(
"\n"
);
sb
.
append
(
" humidity: "
).
append
(
toIndentedString
(
humidity
)).
append
(
"\n"
);
sb
.
append
(
" cloud: "
).
append
(
toIndentedString
(
cloud
)).
append
(
"\n"
);
sb
.
append
(
" feelslikeC: "
).
append
(
toIndentedString
(
feelslikeC
)).
append
(
"\n"
);
sb
.
append
(
" feelslikeF: "
).
append
(
toIndentedString
(
feelslikeF
)).
append
(
"\n"
);
sb
.
append
(
" windchillC: "
).
append
(
toIndentedString
(
windchillC
)).
append
(
"\n"
);
sb
.
append
(
" windchillF: "
).
append
(
toIndentedString
(
windchillF
)).
append
(
"\n"
);
sb
.
append
(
" heatindexC: "
).
append
(
toIndentedString
(
heatindexC
)).
append
(
"\n"
);
sb
.
append
(
" heatindexF: "
).
append
(
toIndentedString
(
heatindexF
)).
append
(
"\n"
);
sb
.
append
(
" dewpointC: "
).
append
(
toIndentedString
(
dewpointC
)).
append
(
"\n"
);
sb
.
append
(
" dewpointF: "
).
append
(
toIndentedString
(
dewpointF
)).
append
(
"\n"
);
sb
.
append
(
" willItRain: "
).
append
(
toIndentedString
(
willItRain
)).
append
(
"\n"
);
sb
.
append
(
" chanceOfRain: "
).
append
(
toIndentedString
(
chanceOfRain
)).
append
(
"\n"
);
sb
.
append
(
" willItSnow: "
).
append
(
toIndentedString
(
willItSnow
)).
append
(
"\n"
);
sb
.
append
(
" chanceOfSnow: "
).
append
(
toIndentedString
(
chanceOfSnow
)).
append
(
"\n"
);
sb
.
append
(
" visKm: "
).
append
(
toIndentedString
(
visKm
)).
append
(
"\n"
);
sb
.
append
(
" visMiles: "
).
append
(
toIndentedString
(
visMiles
)).
append
(
"\n"
);
sb
.
append
(
" gustMph: "
).
append
(
toIndentedString
(
gustMph
)).
append
(
"\n"
);
sb
.
append
(
" gustKph: "
).
append
(
toIndentedString
(
gustKph
)).
append
(
"\n"
);
sb
.
append
(
" uv: "
).
append
(
toIndentedString
(
uv
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/Location.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.math.BigDecimal
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* Location
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
Location
{
@JsonProperty
(
"name"
)
private
String
name
=
null
;
@JsonProperty
(
"region"
)
private
String
region
=
null
;
@JsonProperty
(
"country"
)
private
String
country
=
null
;
@JsonProperty
(
"lon"
)
private
BigDecimal
lon
=
null
;
@JsonProperty
(
"lat"
)
private
BigDecimal
lat
=
null
;
@JsonProperty
(
"tz_id"
)
private
String
tzId
=
null
;
@JsonProperty
(
"localtime_epoch"
)
private
Integer
localtimeEpoch
=
null
;
@JsonProperty
(
"localtime"
)
private
String
localtime
=
null
;
public
Location
name
(
String
name
)
{
this
.
name
=
name
;
return
this
;
}
/**
* city name
*
* @return name
**/
@Schema
(
example
=
"stuttgart"
,
description
=
"city name"
)
@NotNull
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Location
region
(
String
region
)
{
this
.
region
=
region
;
return
this
;
}
/**
* region
*
* @return region
**/
@Schema
(
example
=
"baden wuerttemberg"
,
description
=
"region"
)
@NotNull
public
String
getRegion
()
{
return
region
;
}
public
void
setRegion
(
String
region
)
{
this
.
region
=
region
;
}
public
Location
country
(
String
country
)
{
this
.
country
=
country
;
return
this
;
}
/**
* country
*
* @return country
**/
@Schema
(
example
=
"Germany"
,
description
=
"country"
)
@NotNull
public
String
getCountry
()
{
return
country
;
}
public
void
setCountry
(
String
country
)
{
this
.
country
=
country
;
}
public
Location
lon
(
BigDecimal
lon
)
{
this
.
lon
=
lon
;
return
this
;
}
/**
* City geo location, longitude
*
* @return lon
**/
@Schema
(
example
=
"48.78"
,
description
=
"City geo location, longitude"
)
@NotNull
@Valid
public
BigDecimal
getLon
()
{
return
lon
;
}
public
void
setLon
(
BigDecimal
lon
)
{
this
.
lon
=
lon
;
}
public
Location
lat
(
BigDecimal
lat
)
{
this
.
lat
=
lat
;
return
this
;
}
/**
* City geo location, latitude
*
* @return lat
**/
@Schema
(
example
=
"9.17"
,
description
=
"City geo location, latitude"
)
@NotNull
@Valid
public
BigDecimal
getLat
()
{
return
lat
;
}
public
void
setLat
(
BigDecimal
lat
)
{
this
.
lat
=
lat
;
}
public
Location
tzId
(
String
tzId
)
{
this
.
tzId
=
tzId
;
return
this
;
}
/**
* timezone id
*
* @return tzId
**/
@Schema
(
example
=
"europa/berlin"
,
description
=
"timezone id"
)
@NotNull
public
String
getTzId
()
{
return
tzId
;
}
public
void
setTzId
(
String
tzId
)
{
this
.
tzId
=
tzId
;
}
public
Location
localtimeEpoch
(
Integer
localtimeEpoch
)
{
this
.
localtimeEpoch
=
localtimeEpoch
;
return
this
;
}
/**
* unix time
*
* @return localtimeEpoch
**/
@Schema
(
example
=
"1717491434"
,
description
=
"unix time"
)
@NotNull
public
Integer
getLocaltimeEpoch
()
{
return
localtimeEpoch
;
}
public
void
setLocaltimeEpoch
(
Integer
localtimeEpoch
)
{
this
.
localtimeEpoch
=
localtimeEpoch
;
}
public
Location
localtime
(
String
localtime
)
{
this
.
localtime
=
localtime
;
return
this
;
}
/**
* current time
*
* @return localtime
**/
@Schema
(
example
=
"2001-10-09 10:07"
,
description
=
"current time"
)
@NotNull
public
String
getLocaltime
()
{
return
localtime
;
}
public
void
setLocaltime
(
String
localtime
)
{
this
.
localtime
=
localtime
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Location
location
=
(
Location
)
o
;
return
Objects
.
equals
(
this
.
name
,
location
.
name
)
&&
Objects
.
equals
(
this
.
region
,
location
.
region
)
&&
Objects
.
equals
(
this
.
country
,
location
.
country
)
&&
Objects
.
equals
(
this
.
lon
,
location
.
lon
)
&&
Objects
.
equals
(
this
.
lat
,
location
.
lat
)
&&
Objects
.
equals
(
this
.
tzId
,
location
.
tzId
)
&&
Objects
.
equals
(
this
.
localtimeEpoch
,
location
.
localtimeEpoch
)
&&
Objects
.
equals
(
this
.
localtime
,
location
.
localtime
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
name
,
region
,
country
,
lon
,
lat
,
tzId
,
localtimeEpoch
,
localtime
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Location {\n"
);
sb
.
append
(
" name: "
).
append
(
toIndentedString
(
name
)).
append
(
"\n"
);
sb
.
append
(
" region: "
).
append
(
toIndentedString
(
region
)).
append
(
"\n"
);
sb
.
append
(
" country: "
).
append
(
toIndentedString
(
country
)).
append
(
"\n"
);
sb
.
append
(
" lon: "
).
append
(
toIndentedString
(
lon
)).
append
(
"\n"
);
sb
.
append
(
" lat: "
).
append
(
toIndentedString
(
lat
)).
append
(
"\n"
);
sb
.
append
(
" tzId: "
).
append
(
toIndentedString
(
tzId
)).
append
(
"\n"
);
sb
.
append
(
" localtimeEpoch: "
).
append
(
toIndentedString
(
localtimeEpoch
)).
append
(
"\n"
);
sb
.
append
(
" localtime: "
).
append
(
toIndentedString
(
localtime
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/Model200.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
io.swagger.model.Location
;
import
io.swagger.model.Current
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* Model200
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
Model200
{
@JsonProperty
(
"location"
)
private
Location
location
=
null
;
@JsonProperty
(
"current"
)
private
Current
current
=
null
;
public
Model200
location
(
Location
location
)
{
this
.
location
=
location
;
return
this
;
}
/**
* Get location
*
* @return location
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
Location
getLocation
()
{
return
location
;
}
public
void
setLocation
(
Location
location
)
{
this
.
location
=
location
;
}
public
Model200
current
(
Current
current
)
{
this
.
current
=
current
;
return
this
;
}
/**
* Get current
*
* @return current
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
Current
getCurrent
()
{
return
current
;
}
public
void
setCurrent
(
Current
current
)
{
this
.
current
=
current
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Model200
_200
=
(
Model200
)
o
;
return
Objects
.
equals
(
this
.
location
,
_200
.
location
)
&&
Objects
.
equals
(
this
.
current
,
_200
.
current
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
location
,
current
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Model200 {\n"
);
sb
.
append
(
" location: "
).
append
(
toIndentedString
(
location
)).
append
(
"\n"
);
sb
.
append
(
" current: "
).
append
(
toIndentedString
(
current
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/Modelforecast.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
io.swagger.model.Location
;
import
io.swagger.model.Current
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* Model200
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
Modelforecast
{
@JsonProperty
(
"location"
)
private
Location
location
=
null
;
@JsonProperty
(
"current"
)
private
Current
current
=
null
;
@JsonProperty
(
"forecast"
)
private
WeatherResponseForecast
forecast
=
null
;
@JsonProperty
(
"alerts"
)
private
WeatherResponseAlerts
alerts
=
null
;
public
Modelforecast
location
(
Location
location
)
{
this
.
location
=
location
;
return
this
;
}
/**
* Get location
*
* @return location
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
Location
getLocation
()
{
return
location
;
}
public
void
setLocation
(
Location
location
)
{
this
.
location
=
location
;
}
public
Modelforecast
current
(
Current
current
)
{
this
.
current
=
current
;
return
this
;
}
/**
* Get current
*
* @return current
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
Current
getCurrent
()
{
return
current
;
}
public
void
setCurrent
(
Current
current
)
{
this
.
current
=
current
;
}
public
Modelforecast
forecast
(
WeatherResponseForecast
forecast
)
{
this
.
forecast
=
forecast
;
return
this
;
}
/**
* Get forecast
*
* @return forecast
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
WeatherResponseForecast
getForecast
()
{
return
forecast
;
}
public
void
setForecast
(
WeatherResponseForecast
forecast
)
{
this
.
forecast
=
forecast
;
}
public
Modelforecast
alerts
(
WeatherResponseAlerts
alerts
)
{
this
.
alerts
=
alerts
;
return
this
;
}
/**
* Get alerts
*
* @return alerts
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
WeatherResponseAlerts
getAlerts
()
{
return
alerts
;
}
public
void
setAlerts
(
WeatherResponseAlerts
alerts
)
{
this
.
alerts
=
alerts
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Modelforecast
_200
=
(
Modelforecast
)
o
;
return
Objects
.
equals
(
this
.
location
,
_200
.
location
)
&&
Objects
.
equals
(
this
.
current
,
_200
.
current
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
location
,
current
,
forecast
,
alerts
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Model200 {\n"
);
sb
.
append
(
" location: "
).
append
(
toIndentedString
(
location
)).
append
(
"\n"
);
sb
.
append
(
" current: "
).
append
(
toIndentedString
(
current
)).
append
(
"\n"
);
sb
.
append
(
" forecast: "
).
append
(
toIndentedString
(
forecast
)).
append
(
"\n"
);
sb
.
append
(
" alerts: "
).
append
(
toIndentedString
(
alerts
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/WeatherAirQuality.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.math.BigDecimal
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* WeatherAirQuality
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
WeatherAirQuality
{
@JsonProperty
(
"co"
)
private
BigDecimal
co
=
null
;
@JsonProperty
(
"no2"
)
private
BigDecimal
no2
=
null
;
@JsonProperty
(
"o3"
)
private
BigDecimal
o3
=
null
;
@JsonProperty
(
"so2"
)
private
BigDecimal
so2
=
null
;
@JsonProperty
(
"pm2_5"
)
private
BigDecimal
pm25
=
null
;
@JsonProperty
(
"pm10"
)
private
BigDecimal
pm10
=
null
;
@JsonProperty
(
"us-epa-index"
)
private
Integer
usEpaIndex
=
null
;
@JsonProperty
(
"gb-defra-index"
)
private
Integer
gbDefraIndex
=
null
;
public
WeatherAirQuality
co
(
BigDecimal
co
)
{
this
.
co
=
co
;
return
this
;
}
/**
* Get co
*
* @return co
**/
@Schema
(
example
=
"234.32"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getCo
()
{
return
co
;
}
public
void
setCo
(
BigDecimal
co
)
{
this
.
co
=
co
;
}
public
WeatherAirQuality
no2
(
BigDecimal
no2
)
{
this
.
no2
=
no2
;
return
this
;
}
/**
* Get no2
*
* @return no2
**/
@Schema
(
example
=
"3.4"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getNo2
()
{
return
no2
;
}
public
void
setNo2
(
BigDecimal
no2
)
{
this
.
no2
=
no2
;
}
public
WeatherAirQuality
o3
(
BigDecimal
o3
)
{
this
.
o3
=
o3
;
return
this
;
}
/**
* Get o3
*
* @return o3
**/
@Schema
(
example
=
"234.3"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getO3
()
{
return
o3
;
}
public
void
setO3
(
BigDecimal
o3
)
{
this
.
o3
=
o3
;
}
public
WeatherAirQuality
so2
(
BigDecimal
so2
)
{
this
.
so2
=
so2
;
return
this
;
}
/**
* Get so2
*
* @return so2
**/
@Schema
(
example
=
"490.34"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getSo2
()
{
return
so2
;
}
public
void
setSo2
(
BigDecimal
so2
)
{
this
.
so2
=
so2
;
}
public
WeatherAirQuality
pm25
(
BigDecimal
pm25
)
{
this
.
pm25
=
pm25
;
return
this
;
}
/**
* Get pm25
*
* @return pm25
**/
@Schema
(
example
=
"96.34"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getPm25
()
{
return
pm25
;
}
public
void
setPm25
(
BigDecimal
pm25
)
{
this
.
pm25
=
pm25
;
}
public
WeatherAirQuality
pm10
(
BigDecimal
pm10
)
{
this
.
pm10
=
pm10
;
return
this
;
}
/**
* Get pm10
*
* @return pm10
**/
@Schema
(
example
=
"22.3"
,
description
=
""
)
@NotNull
@Valid
public
BigDecimal
getPm10
()
{
return
pm10
;
}
public
void
setPm10
(
BigDecimal
pm10
)
{
this
.
pm10
=
pm10
;
}
public
WeatherAirQuality
usEpaIndex
(
Integer
usEpaIndex
)
{
this
.
usEpaIndex
=
usEpaIndex
;
return
this
;
}
/**
* Get usEpaIndex
*
* @return usEpaIndex
**/
@Schema
(
example
=
"32"
,
description
=
""
)
@NotNull
public
Integer
getUsEpaIndex
()
{
return
usEpaIndex
;
}
public
void
setUsEpaIndex
(
Integer
usEpaIndex
)
{
this
.
usEpaIndex
=
usEpaIndex
;
}
public
WeatherAirQuality
gbDefraIndex
(
Integer
gbDefraIndex
)
{
this
.
gbDefraIndex
=
gbDefraIndex
;
return
this
;
}
/**
* Get gbDefraIndex
*
* @return gbDefraIndex
**/
@Schema
(
example
=
"9999"
,
description
=
""
)
@NotNull
public
Integer
getGbDefraIndex
()
{
return
gbDefraIndex
;
}
public
void
setGbDefraIndex
(
Integer
gbDefraIndex
)
{
this
.
gbDefraIndex
=
gbDefraIndex
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
WeatherAirQuality
weatherAirQuality
=
(
WeatherAirQuality
)
o
;
return
Objects
.
equals
(
this
.
co
,
weatherAirQuality
.
co
)
&&
Objects
.
equals
(
this
.
no2
,
weatherAirQuality
.
no2
)
&&
Objects
.
equals
(
this
.
o3
,
weatherAirQuality
.
o3
)
&&
Objects
.
equals
(
this
.
so2
,
weatherAirQuality
.
so2
)
&&
Objects
.
equals
(
this
.
pm25
,
weatherAirQuality
.
pm25
)
&&
Objects
.
equals
(
this
.
pm10
,
weatherAirQuality
.
pm10
)
&&
Objects
.
equals
(
this
.
usEpaIndex
,
weatherAirQuality
.
usEpaIndex
)
&&
Objects
.
equals
(
this
.
gbDefraIndex
,
weatherAirQuality
.
gbDefraIndex
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
co
,
no2
,
o3
,
so2
,
pm25
,
pm10
,
usEpaIndex
,
gbDefraIndex
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class WeatherAirQuality {\n"
);
sb
.
append
(
" co: "
).
append
(
toIndentedString
(
co
)).
append
(
"\n"
);
sb
.
append
(
" no2: "
).
append
(
toIndentedString
(
no2
)).
append
(
"\n"
);
sb
.
append
(
" o3: "
).
append
(
toIndentedString
(
o3
)).
append
(
"\n"
);
sb
.
append
(
" so2: "
).
append
(
toIndentedString
(
so2
)).
append
(
"\n"
);
sb
.
append
(
" pm25: "
).
append
(
toIndentedString
(
pm25
)).
append
(
"\n"
);
sb
.
append
(
" pm10: "
).
append
(
toIndentedString
(
pm10
)).
append
(
"\n"
);
sb
.
append
(
" usEpaIndex: "
).
append
(
toIndentedString
(
usEpaIndex
)).
append
(
"\n"
);
sb
.
append
(
" gbDefraIndex: "
).
append
(
toIndentedString
(
gbDefraIndex
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/WeatherCondition.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* WeatherCondition
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-04T09:41:03.559554872Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
WeatherCondition
{
@JsonProperty
(
"text"
)
private
String
text
=
null
;
@JsonProperty
(
"icon"
)
private
String
icon
=
null
;
@JsonProperty
(
"code"
)
private
Integer
code
=
null
;
public
WeatherCondition
text
(
String
text
)
{
this
.
text
=
text
;
return
this
;
}
/**
* weather text
*
* @return text
**/
@Schema
(
example
=
"overcast"
,
description
=
"weather text"
)
@NotNull
public
String
getText
()
{
return
text
;
}
public
void
setText
(
String
text
)
{
this
.
text
=
text
;
}
public
WeatherCondition
icon
(
String
icon
)
{
this
.
icon
=
icon
;
return
this
;
}
/**
* current time
*
* @return icon
**/
@Schema
(
example
=
"//cdn.weatherapi.com/weather/64x64/day/116.png"
,
description
=
"current time"
)
@NotNull
public
String
getIcon
()
{
return
icon
;
}
public
void
setIcon
(
String
icon
)
{
this
.
icon
=
icon
;
}
public
WeatherCondition
code
(
Integer
code
)
{
this
.
code
=
code
;
return
this
;
}
/**
* updated epoch
*
* @return code
**/
@Schema
(
example
=
"1003"
,
description
=
"updated epoch"
)
@NotNull
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
WeatherCondition
weatherCondition
=
(
WeatherCondition
)
o
;
return
Objects
.
equals
(
this
.
text
,
weatherCondition
.
text
)
&&
Objects
.
equals
(
this
.
icon
,
weatherCondition
.
icon
)
&&
Objects
.
equals
(
this
.
code
,
weatherCondition
.
code
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
text
,
icon
,
code
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class WeatherCondition {\n"
);
sb
.
append
(
" text: "
).
append
(
toIndentedString
(
text
)).
append
(
"\n"
);
sb
.
append
(
" icon: "
).
append
(
toIndentedString
(
icon
)).
append
(
"\n"
);
sb
.
append
(
" code: "
).
append
(
toIndentedString
(
code
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/WeatherResponse.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.model.WeatherResponseForecast
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* WeatherResponse
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
WeatherResponse
{
@JsonProperty
(
"forecast"
)
private
WeatherResponseForecast
forecast
=
null
;
public
WeatherResponse
forecast
(
WeatherResponseForecast
forecast
)
{
this
.
forecast
=
forecast
;
return
this
;
}
/**
* Get forecast
* @return forecast
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
WeatherResponseForecast
getForecast
()
{
return
forecast
;
}
public
void
setForecast
(
WeatherResponseForecast
forecast
)
{
this
.
forecast
=
forecast
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
WeatherResponse
weatherResponse
=
(
WeatherResponse
)
o
;
return
Objects
.
equals
(
this
.
forecast
,
weatherResponse
.
forecast
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
forecast
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class WeatherResponse {\n"
);
sb
.
append
(
" forecast: "
).
append
(
toIndentedString
(
forecast
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/WeatherResponseAlerts.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.model.Alerts
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* WeatherResponseAlerts
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T13:05:28.829911948Z[GMT]"
)
public
class
WeatherResponseAlerts
{
@JsonProperty
(
"alert"
)
@Valid
private
List
<
Alerts
>
alert
=
null
;
public
WeatherResponseAlerts
alert
(
List
<
Alerts
>
alert
)
{
this
.
alert
=
alert
;
return
this
;
}
public
WeatherResponseAlerts
addAlertItem
(
Alerts
alertItem
)
{
if
(
this
.
alert
==
null
)
{
this
.
alert
=
new
ArrayList
<
Alerts
>();
}
this
.
alert
.
add
(
alertItem
);
return
this
;
}
/**
* Get alert
* @return alert
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
List
<
Alerts
>
getAlert
()
{
return
alert
;
}
public
void
setAlert
(
List
<
Alerts
>
alert
)
{
this
.
alert
=
alert
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
WeatherResponseAlerts
weatherResponseAlerts
=
(
WeatherResponseAlerts
)
o
;
return
Objects
.
equals
(
this
.
alert
,
weatherResponseAlerts
.
alert
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
alert
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class WeatherResponseAlerts {\n"
);
sb
.
append
(
" alert: "
).
append
(
toIndentedString
(
alert
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
src/main/java/io/swagger/model/WeatherResponseForecast.java
0 → 100644
View file @
9d889c8b
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
io.swagger.model.ForecastDay
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
/**
* WeatherResponseForecast
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
public
class
WeatherResponseForecast
{
@JsonProperty
(
"forecastday"
)
@Valid
private
List
<
ForecastDay
>
forecastday
=
null
;
public
WeatherResponseForecast
forecastday
(
List
<
ForecastDay
>
forecastday
)
{
this
.
forecastday
=
forecastday
;
return
this
;
}
public
WeatherResponseForecast
addForecastdayItem
(
ForecastDay
forecastdayItem
)
{
if
(
this
.
forecastday
==
null
)
{
this
.
forecastday
=
new
ArrayList
<
ForecastDay
>();
}
this
.
forecastday
.
add
(
forecastdayItem
);
return
this
;
}
/**
* Get forecastday
* @return forecastday
**/
@Schema
(
description
=
""
)
@NotNull
@Valid
public
List
<
ForecastDay
>
getForecastday
()
{
return
forecastday
;
}
public
void
setForecastday
(
List
<
ForecastDay
>
forecastday
)
{
this
.
forecastday
=
forecastday
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
WeatherResponseForecast
weatherResponseForecast
=
(
WeatherResponseForecast
)
o
;
return
Objects
.
equals
(
this
.
forecastday
,
weatherResponseForecast
.
forecastday
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
forecastday
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class WeatherResponseForecast {\n"
);
sb
.
append
(
" forecastday: "
).
append
(
toIndentedString
(
forecastday
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment