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 data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
25 * Annotation Style: GSON
28 * allow additional properties
30 * @author Wolfgang Klimt - Initial contribution
32 public class OpenWeatherMapOneCallHistAPIData {
35 private String timezone;
36 @SerializedName("timezone_offset")
37 private int timezoneOffset;
38 private Current current;
39 private List<Hourly> hourly = null;
41 public double getLat() {
45 public void setLat(double lat) {
49 public double getLon() {
53 public void setLon(double lon) {
57 public String getTimezone() {
61 public void setTimezone(String timezone) {
62 this.timezone = timezone;
65 public int getTimezoneOffset() {
66 return timezoneOffset;
69 public void setTimezoneOffset(int timezoneOffset) {
70 this.timezoneOffset = timezoneOffset;
73 public Current getCurrent() {
77 public void setCurrent(Current current) {
78 this.current = current;
81 public List<Hourly> getHourly() {
85 public void setHourly(List<Hourly> hourly) {