2 * Copyright (c) 2010-2022 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.onecall;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.Nullable;
19 import com.google.gson.annotations.SerializedName;
22 * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
24 * Annotation Style: GSON
27 * allow additional properties
29 * @author Wolfgang Klimt - Initial contribution
30 * @author Christoph Weitkamp - Added weather alerts
32 public class OpenWeatherMapOneCallAPIData {
36 private String timezone;
37 @SerializedName("timezone_offset")
38 private int timezoneOffset;
39 private Current current;
40 private List<Minutely> minutely;
41 private List<Hourly> hourly;
42 private List<Daily> daily;
44 public @Nullable List<Alert> alerts;
46 public double getLat() {
50 public void setLat(double lat) {
54 public double getLon() {
58 public void setLon(double lon) {
62 public String getTimezone() {
66 public void setTimezone(String timezone) {
67 this.timezone = timezone;
70 public int getTimezoneOffset() {
71 return timezoneOffset;
74 public void setTimezoneOffset(int timezoneOffset) {
75 this.timezoneOffset = timezoneOffset;
78 public Current getCurrent() {
82 public void setCurrent(Current current) {
83 this.current = current;
86 public List<Minutely> getMinutely() {
90 public void setMinutely(List<Minutely> minutely) {
91 this.minutely = minutely;
94 public List<Hourly> getHourly() {
98 public void setHourly(List<Hourly> hourly) {
102 public List<Daily> getDaily() {
106 public void setDaily(List<Daily> daily) {