// Path: api-model/src/main/java/org/openweathermap/api/gson/ISOStringDateTypeAdapter.java
// public final class ISOStringDateTypeAdapter extends TypeAdapter<Date> {
// 
//     private static final String ISO_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
// 
// 
//     /* visible for tests */ static final ThreadLocal<SimpleDateFormat> DATE_FORMAT =
//             new ThreadLocal<SimpleDateFormat>() {
//                 @Override
//                 protected SimpleDateFormat initialValue() {
//                     SimpleDateFormat result = new SimpleDateFormat(ISO_DATE_FORMAT);
//                     result.setTimeZone(TimeZone.getTimeZone("UTC"));
//                     return result;
//                 }
//             };
// 
//     @Override
//     public void write(JsonWriter out, Date value) throws IOException {
//         if (value == null) {
//             out.nullValue();
//             return;
//         }
//         String dateFormatAsString = DATE_FORMAT.get().format(value);
//         out.value(dateFormatAsString);
//     }
// 
//     @Override
//     public Date read(JsonReader in) throws IOException {
//         if (in.peek() == JsonToken.NULL) {
//             in.nextNull();
//             return null;
//         }
//         String json = in.nextString();
//         try {
//             return DATE_FORMAT.get().parse(json);
//         } catch (ParseException e) {
//             throw new JsonSyntaxException(json, e);
//         }
//     }
// }
// 
// Path: api-model/src/main/java/org/openweathermap/api/model/AbstractWeatherInformation.java
// @EqualsAndHashCode(callSuper = true)
// @Data
// public class AbstractWeatherInformation extends AbstractWeatherResponse {
// 
//     @SerializedName("main")
//     private MainParameters mainParameters;
// 
//     private Wind wind;
// 
//     private Clouds clouds;
// 
//     private Rain rain;
// 
//     private Snow snow;
// }
// 
// Path: api-model/src/main/java/org/openweathermap/api/model/forecast/Forecast.java
// public interface Forecast {
// }
// 
// Path: api-model/src/main/java/org/openweathermap/api/model/forecast/ForecastInformation.java
// @Data
// public class ForecastInformation<T extends Forecast> {
//     private String code;
//     private String message;
//     private City city;
//     private int cnt;
//     @SerializedName("list")
//     private List<T> forecasts;
// }


import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.openweathermap.api.gson.ISOStringDateTypeAdapter;
import org.openweathermap.api.model.AbstractWeatherInformation;
import org.openweathermap.api.model.forecast.Forecast;
import org.openweathermap.api.model.forecast.ForecastInformation;
import java.lang.reflect.Type;
import java.util.Date;
import java.util.List;
/*
 * Copyright 2021, Yurii Serhiichuk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.openweathermap.api.model.forecast.hourly;



@EqualsAndHashCode(callSuper = true)
@Data
// Path: api-model/src/main/java/org/openweathermap/api/gson/ISOStringDateTypeAdapter.java
// public final class ISOStringDateTypeAdapter extends TypeAdapter<Date> {
// 
//     private static final String ISO_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
// 
// 
//     /* visible for tests */ static final ThreadLocal<SimpleDateFormat> DATE_FORMAT =
//             new ThreadLocal<SimpleDateFormat>() {
//                 @Override
//                 protected SimpleDateFormat initialValue() {
//                     SimpleDateFormat result = new SimpleDateFormat(ISO_DATE_FORMAT);
//                     result.setTimeZone(TimeZone.getTimeZone("UTC"));
//                     return result;
//                 }
//             };
// 
//     @Override
//     public void write(JsonWriter out, Date value) throws IOException {
//         if (value == null) {
//             out.nullValue();
//             return;
//         }
//         String dateFormatAsString = DATE_FORMAT.get().format(value);
//         out.value(dateFormatAsString);
//     }
// 
//     @Override
//     public Date read(JsonReader in) throws IOException {
//         if (in.peek() == JsonToken.NULL) {
//             in.nextNull();
//             return null;
//         }
//         String json = in.nextString();
//         try {
//             return DATE_FORMAT.get().parse(json);
//         } catch (ParseException e) {
//             throw new JsonSyntaxException(json, e);
//         }
//     }
// }
// 
// Path: api-model/src/main/java/org/openweathermap/api/model/AbstractWeatherInformation.java
// @EqualsAndHashCode(callSuper = true)
// @Data
// public class AbstractWeatherInformation extends AbstractWeatherResponse {
// 
//     @SerializedName("main")
//     private MainParameters mainParameters;
// 
//     private Wind wind;
// 
//     private Clouds clouds;
// 
//     private Rain rain;
// 
//     private Snow snow;
// }
// 
// Path: api-model/src/main/java/org/openweathermap/api/model/forecast/Forecast.java
// public interface Forecast {
// }
// 
// Path: api-model/src/main/java/org/openweathermap/api/model/forecast/ForecastInformation.java
// @Data
// public class ForecastInformation<T extends Forecast> {
//     private String code;
//     private String message;
//     private City city;
//     private int cnt;
//     @SerializedName("list")
//     private List<T> forecasts;
// }


// Path: api-model/src/main/java/org/openweathermap/api/model/forecast/hourly/HourlyForecast.java
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.openweathermap.api.gson.ISOStringDateTypeAdapter;
import org.openweathermap.api.model.AbstractWeatherInformation;
import org.openweathermap.api.model.forecast.Forecast;
import org.openweathermap.api.model.forecast.ForecastInformation;
import java.lang.reflect.Type;
import java.util.Date;
import java.util.List;

/*
 * Copyright 2021, Yurii Serhiichuk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.openweathermap.api.model.forecast.hourly;



@EqualsAndHashCode(callSuper = true)
@Data
public class HourlyForecast extends AbstractWeatherInformation implements Forecast {