]> git.basschouten.com Git - openhab-addons.git/blob
6efafe12e499739855e74c027004fad210943861
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.openweathermap.internal.dto;
14
15 import java.util.List;
16
17 import org.openhab.binding.openweathermap.internal.dto.onecall.Current;
18 import org.openhab.binding.openweathermap.internal.dto.onecallhist.Hourly;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
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>.
26  *
27  * @author Wolfgang Klimt - Initial contribution
28  */
29 public class OpenWeatherMapOneCallHistAPIData {
30     private double lat;
31     private double lon;
32     private String timezone;
33     @SerializedName("timezone_offset")
34     private int timezoneOffset;
35     private Current current;
36     private List<Hourly> hourly = null;
37
38     public double getLat() {
39         return lat;
40     }
41
42     public void setLat(double lat) {
43         this.lat = lat;
44     }
45
46     public double getLon() {
47         return lon;
48     }
49
50     public void setLon(double lon) {
51         this.lon = lon;
52     }
53
54     public String getTimezone() {
55         return timezone;
56     }
57
58     public void setTimezone(String timezone) {
59         this.timezone = timezone;
60     }
61
62     public int getTimezoneOffset() {
63         return timezoneOffset;
64     }
65
66     public void setTimezoneOffset(int timezoneOffset) {
67         this.timezoneOffset = timezoneOffset;
68     }
69
70     public Current getCurrent() {
71         return current;
72     }
73
74     public void setCurrent(Current current) {
75         this.current = current;
76     }
77
78     public List<Hourly> getHourly() {
79         return hourly;
80     }
81
82     public void setHourly(List<Hourly> hourly) {
83         this.hourly = hourly;
84     }
85 }