]> git.basschouten.com Git - openhab-addons.git/blob
736aecc795d61bced6cfcbd51cebf5cf39d6ea08
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.onecall;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
22  * Settings:
23  * Annotation Style: GSON
24  * Use primitive types
25  * Use double numbers
26  * allow additional properties
27  *
28  * @author Wolfgang Klimt - Initial contribution
29  */
30 public class OpenWeatherMapOneCallAPIData {
31
32     @SerializedName("lat")
33     @Expose
34     private double lat;
35     @SerializedName("lon")
36     @Expose
37     private double lon;
38     @SerializedName("timezone")
39     @Expose
40     private String timezone;
41     @SerializedName("timezone_offset")
42     @Expose
43     private int timezoneOffset;
44     @SerializedName("current")
45     @Expose
46     private Current current;
47     @SerializedName("minutely")
48     @Expose
49     private List<Minutely> minutely = null;
50     @SerializedName("hourly")
51     @Expose
52     private List<Hourly> hourly = null;
53     @SerializedName("daily")
54     @Expose
55     private List<Daily> daily = null;
56
57     public double getLat() {
58         return lat;
59     }
60
61     public void setLat(double lat) {
62         this.lat = lat;
63     }
64
65     public double getLon() {
66         return lon;
67     }
68
69     public void setLon(double lon) {
70         this.lon = lon;
71     }
72
73     public String getTimezone() {
74         return timezone;
75     }
76
77     public void setTimezone(String timezone) {
78         this.timezone = timezone;
79     }
80
81     public int getTimezoneOffset() {
82         return timezoneOffset;
83     }
84
85     public void setTimezoneOffset(int timezoneOffset) {
86         this.timezoneOffset = timezoneOffset;
87     }
88
89     public Current getCurrent() {
90         return current;
91     }
92
93     public void setCurrent(Current current) {
94         this.current = current;
95     }
96
97     public List<Minutely> getMinutely() {
98         return minutely;
99     }
100
101     public void setMinutely(List<Minutely> minutely) {
102         this.minutely = minutely;
103     }
104
105     public List<Hourly> getHourly() {
106         return hourly;
107     }
108
109     public void setHourly(List<Hourly> hourly) {
110         this.hourly = hourly;
111     }
112
113     public List<Daily> getDaily() {
114         return daily;
115     }
116
117     public void setDaily(List<Daily> daily) {
118         this.daily = daily;
119     }
120 }