Commit 19b790d3 authored by EnesKarakas's avatar EnesKarakas
Browse files

hg

parent 1d2e4b53
...@@ -61,7 +61,7 @@ public class HistoricalweatherApiController implements HistoricalweatherApi { ...@@ -61,7 +61,7 @@ public class HistoricalweatherApiController implements HistoricalweatherApi {
) { ) {
try { try {
String datafree = "{\"location\":{},\"current\": {\"condition\": {},\"air_quality\": {}}}";
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
ApiService apiService = new ApiService(restTemplate); ApiService apiService = new ApiService(restTemplate);
......
...@@ -70,7 +70,7 @@ public class DayCondition { ...@@ -70,7 +70,7 @@ public class DayCondition {
private Integer dailyChanceOfSnow = null; private Integer dailyChanceOfSnow = null;
@JsonProperty("uv") @JsonProperty("uv")
private Float uv_day = null; private Float uv = null;
public DayCondition maxtempC(Float maxtempC) { public DayCondition maxtempC(Float maxtempC) {
this.maxtempC = maxtempC; this.maxtempC = maxtempC;
...@@ -429,25 +429,25 @@ public class DayCondition { ...@@ -429,25 +429,25 @@ public class DayCondition {
this.dailyChanceOfSnow = dailyChanceOfSnow; this.dailyChanceOfSnow = dailyChanceOfSnow;
} }
public DayCondition uv_day(Float uv_day) { public DayCondition uv(Float uv) {
this.uv_day = uv_day; this.uv = uv;
return this; return this;
} }
/** /**
* Get uv_day * Get uv
* *
* @return uv_day * @return uv
**/ **/
@Schema(description = "") @Schema(description = "")
@NotNull @NotNull
public Float getUv_day() { public Float getUv() {
return uv_day; return uv;
} }
public void setUv_day(Float uv_day) { public void setUv(Float uv) {
this.uv_day = uv_day; this.uv = uv;
} }
@Override @Override
...@@ -476,14 +476,14 @@ public class DayCondition { ...@@ -476,14 +476,14 @@ public class DayCondition {
Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) && Objects.equals(this.dailyChanceOfRain, dayCondition.dailyChanceOfRain) &&
Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) && Objects.equals(this.dailyWillItSnow, dayCondition.dailyWillItSnow) &&
Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) && Objects.equals(this.dailyChanceOfSnow, dayCondition.dailyChanceOfSnow) &&
Objects.equals(this.uv_day, dayCondition.uv_day); Objects.equals(this.uv, dayCondition.uv);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph, return Objects.hash(maxtempC, maxtempF, mintempC, mintempF, avgtempC, avgtempF, maxwindMph, maxwindKph,
totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain, totalprecipMm, totalprecipIn, avgvisKm, avgvisMiles, avghumidity, dailyWillItRain, dailyChanceOfRain,
dailyWillItSnow, dailyChanceOfSnow, uv_day); dailyWillItSnow, dailyChanceOfSnow, uv);
} }
@Override @Override
...@@ -508,7 +508,7 @@ public class DayCondition { ...@@ -508,7 +508,7 @@ public class DayCondition {
sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n"); sb.append(" dailyChanceOfRain: ").append(toIndentedString(dailyChanceOfRain)).append("\n");
sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n"); sb.append(" dailyWillItSnow: ").append(toIndentedString(dailyWillItSnow)).append("\n");
sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).append("\n"); sb.append(" dailyChanceOfSnow: ").append(toIndentedString(dailyChanceOfSnow)).append("\n");
sb.append(" uv_day: ").append(toIndentedString(uv_day)).append("\n"); sb.append(" uv: ").append(toIndentedString(uv)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment