Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Karakas
SWP_SS24_Wetterdaten_sammeln
Compare Revisions
888289d4821c3373af5f87b0820b2254140a6256...cabb31c97097be3b2695fbc18b1dc05acdb2c406
Hide whitespace changes
Inline
Side-by-side
src/main/java/io/swagger/model/Modelforecast.java
0 → 100644
View file @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
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.*
;
/**
* 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
=
new
Location
();
@JsonProperty
(
"current"
)
private
Current
current
=
new
Current
();
@JsonProperty
(
"forecast"
)
private
WeatherResponseForecast
forecast
=
new
WeatherResponseForecast
();
@JsonProperty
(
"alerts"
)
private
WeatherResponseAlerts
alerts
=
new
WeatherResponseAlerts
();
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/Search.java
0 → 100644
View file @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.constraints.*
;
/**
* Search
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-09T14:41:38.246173275Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
Search
{
@JsonProperty
(
"id"
)
private
Integer
id
=
null
;
@JsonProperty
(
"name"
)
private
String
name
=
null
;
@JsonProperty
(
"region"
)
private
String
region
=
null
;
@JsonProperty
(
"country"
)
private
String
country
=
null
;
@JsonProperty
(
"lat"
)
private
Float
lat
=
null
;
@JsonProperty
(
"lon"
)
private
Float
lon
=
null
;
@JsonProperty
(
"url"
)
private
String
url
=
null
;
public
Search
id
(
Integer
id
)
{
this
.
id
=
id
;
return
this
;
}
/**
* Get id
*
* @return id
**/
@Schema
(
example
=
"2801268"
,
description
=
""
)
@NotNull
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Search
name
(
String
name
)
{
this
.
name
=
name
;
return
this
;
}
/**
* Get name
*
* @return name
**/
@Schema
(
example
=
"London"
,
description
=
""
)
@NotNull
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Search
region
(
String
region
)
{
this
.
region
=
region
;
return
this
;
}
/**
* Get region
*
* @return region
**/
@Schema
(
example
=
"City of London, Greater London"
,
description
=
""
)
@NotNull
public
String
getRegion
()
{
return
region
;
}
public
void
setRegion
(
String
region
)
{
this
.
region
=
region
;
}
public
Search
country
(
String
country
)
{
this
.
country
=
country
;
return
this
;
}
/**
* Get country
*
* @return country
**/
@Schema
(
example
=
"United Kingdom"
,
description
=
""
)
@NotNull
public
String
getCountry
()
{
return
country
;
}
public
void
setCountry
(
String
country
)
{
this
.
country
=
country
;
}
public
Search
lat
(
Float
lat
)
{
this
.
lat
=
lat
;
return
this
;
}
/**
* Get lat
*
* @return lat
**/
@Schema
(
example
=
"51.52"
,
description
=
""
)
@NotNull
public
Float
getLat
()
{
return
lat
;
}
public
void
setLat
(
Float
lat
)
{
this
.
lat
=
lat
;
}
public
Search
lon
(
Float
lon
)
{
this
.
lon
=
lon
;
return
this
;
}
/**
* Get lon
*
* @return lon
**/
@Schema
(
example
=
"-0.11"
,
description
=
""
)
@NotNull
public
Float
getLon
()
{
return
lon
;
}
public
void
setLon
(
Float
lon
)
{
this
.
lon
=
lon
;
}
public
Search
url
(
String
url
)
{
this
.
url
=
url
;
return
this
;
}
/**
* Get url
*
* @return url
**/
@Schema
(
example
=
"london-city-of-london-greater-london-united-kingdom"
,
description
=
""
)
@NotNull
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
Search
search
=
(
Search
)
o
;
return
Objects
.
equals
(
this
.
id
,
search
.
id
)
&&
Objects
.
equals
(
this
.
name
,
search
.
name
)
&&
Objects
.
equals
(
this
.
region
,
search
.
region
)
&&
Objects
.
equals
(
this
.
country
,
search
.
country
)
&&
Objects
.
equals
(
this
.
lat
,
search
.
lat
)
&&
Objects
.
equals
(
this
.
lon
,
search
.
lon
)
&&
Objects
.
equals
(
this
.
url
,
search
.
url
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
name
,
region
,
country
,
lat
,
lon
,
url
);
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class Search {\n"
);
sb
.
append
(
" id: "
).
append
(
toIndentedString
(
id
)).
append
(
"\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
(
" lat: "
).
append
(
toIndentedString
(
lat
)).
append
(
"\n"
);
sb
.
append
(
" lon: "
).
append
(
toIndentedString
(
lon
)).
append
(
"\n"
);
sb
.
append
(
" url: "
).
append
(
toIndentedString
(
url
)).
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 @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
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 @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
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.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 @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
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.*
;
/**
* WeatherResponse
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.v3.generators.java.SpringCodegen"
,
date
=
"2024-06-06T14:20:51.790816423Z[GMT]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
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 @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
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]"
)
@JsonInclude
(
Include
.
NON_NULL
)
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 @
cabb31c9
package
io.swagger.model
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
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]"
)
@JsonInclude
(
Include
.
NON_NULL
)
public
class
WeatherResponseForecast
{
@JsonProperty
(
"forecastday"
)
@Valid
private
List
<
ForecastDay
>
forecastday
=
new
ArrayList
<>();
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 "
);
}
}
src/main/resources/application.properties
View file @
cabb31c9
spring.datasource.url
=
jdbc:mysql://db.fkc.hft-stuttgart.de/dp4s_22kaen1bdi
springdoc.api-docs.path
=
/api-docs
spring.datasource.username
=
dp4s_22kaen1bdi
server.servlet.contextPath
=
/
spring.datasource.password
=
jAiCHaeNDEREeS
server.port
=
8080
spring.jpa.hibernate.ddl-auto
=
create-drop
spring.jackson.date-format
=
io.swagger.RFC3339DateFormat
\ No newline at end of file
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS
=
false
\ No newline at end of file
src/test/java/com/SWP/SS24/Wetterdaten_sammeln/ApplicationTests.java
deleted
100644 → 0
View file @
888289d4
package
com.SWP.SS24.Wetterdaten_sammeln
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
class
ApplicationTests
{
@Test
void
contextLoads
()
{
}
}
Prev
1
2
3
4
5
Next