2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.openweathermap.internal.dto;
15 import java.util.List;
17 import org.openhab.binding.openweathermap.internal.dto.onecall.Current;
18 import org.openhab.binding.openweathermap.internal.dto.onecallhist.Hourly;
20 import com.google.gson.annotations.SerializedName;
23 * Holds the historical data from the deserialised JSON response of the One Call APIs.
24 * See <a href="https://openweathermap.org/api/one-call-3">One Call API 3.0.</a> and
25 * <a href="https://openweathermap.org/api/one-call-api">One Call API 2.5</a>.
27 * @author Wolfgang Klimt - Initial contribution
29 public class OpenWeatherMapOneCallHistAPIData {
32 private String timezone;
33 @SerializedName("timezone_offset")
34 private int timezoneOffset;
35 private Current current;
36 private List<Hourly> hourly = null;
38 public double getLat() {
42 public void setLat(double lat) {
46 public double getLon() {
50 public void setLon(double lon) {
54 public String getTimezone() {
58 public void setTimezone(String timezone) {
59 this.timezone = timezone;
62 public int getTimezoneOffset() {
63 return timezoneOffset;
66 public void setTimezoneOffset(int timezoneOffset) {
67 this.timezoneOffset = timezoneOffset;
70 public Current getCurrent() {
74 public void setCurrent(Current current) {
75 this.current = current;
78 public List<Hourly> getHourly() {
82 public void setHourly(List<Hourly> hourly) {