]> git.basschouten.com Git - openhab-addons.git/blob
384dd25584476d7c31c7c8fb30510aca3e20d3c9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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 Hourly {
31
32     @SerializedName("dt")
33     @Expose
34     private int dt;
35     @SerializedName("temp")
36     @Expose
37     private double temp;
38     @SerializedName("feels_like")
39     @Expose
40     private double feelsLike;
41     @SerializedName("pressure")
42     @Expose
43     private int pressure;
44     @SerializedName("humidity")
45     @Expose
46     private int humidity;
47     @SerializedName("dew_point")
48     @Expose
49     private double dewPoint;
50     @SerializedName("clouds")
51     @Expose
52     private int clouds;
53     @SerializedName("visibility")
54     @Expose
55     private int visibility;
56     @SerializedName("wind_speed")
57     @Expose
58     private double windSpeed;
59     @SerializedName("wind_deg")
60     @Expose
61     private int windDeg;
62     @SerializedName("wind_gust")
63     @Expose
64     private double windGust;
65     @SerializedName("weather")
66     @Expose
67     private List<Weather> weather = null;
68     @SerializedName("pop")
69     @Expose
70     private double pop;
71     @SerializedName("rain")
72     @Expose
73     private Rain rain;
74     @SerializedName("snow")
75     @Expose
76     private Snow snow;
77
78     public int getDt() {
79         return dt;
80     }
81
82     public void setDt(int dt) {
83         this.dt = dt;
84     }
85
86     public double getTemp() {
87         return temp;
88     }
89
90     public void setTemp(double temp) {
91         this.temp = temp;
92     }
93
94     public double getFeelsLike() {
95         return feelsLike;
96     }
97
98     public void setFeelsLike(double feelsLike) {
99         this.feelsLike = feelsLike;
100     }
101
102     public int getPressure() {
103         return pressure;
104     }
105
106     public void setPressure(int pressure) {
107         this.pressure = pressure;
108     }
109
110     public int getHumidity() {
111         return humidity;
112     }
113
114     public void setHumidity(int humidity) {
115         this.humidity = humidity;
116     }
117
118     public double getDewPoint() {
119         return dewPoint;
120     }
121
122     public void setDewPoint(double dewPoint) {
123         this.dewPoint = dewPoint;
124     }
125
126     public int getClouds() {
127         return clouds;
128     }
129
130     public void setClouds(int clouds) {
131         this.clouds = clouds;
132     }
133
134     public int getVisibility() {
135         return visibility;
136     }
137
138     public void setVisibility(int visibility) {
139         this.visibility = visibility;
140     }
141
142     public double getWindSpeed() {
143         return windSpeed;
144     }
145
146     public void setWindSpeed(double windSpeed) {
147         this.windSpeed = windSpeed;
148     }
149
150     public int getWindDeg() {
151         return windDeg;
152     }
153
154     public void setWindDeg(int windDeg) {
155         this.windDeg = windDeg;
156     }
157
158     public double getWindGust() {
159         return windGust;
160     }
161
162     public void setWindGust(double windGust) {
163         this.windGust = windGust;
164     }
165
166     public List<Weather> getWeather() {
167         return weather;
168     }
169
170     public void setWeather(List<Weather> weather) {
171         this.weather = weather;
172     }
173
174     public double getPop() {
175         return pop;
176     }
177
178     public void setPop(double pop) {
179         this.pop = pop;
180     }
181
182     public Rain getRain() {
183         return rain;
184     }
185
186     public void setRain(Rain rain) {
187         this.rain = rain;
188     }
189
190     public Snow getSnow() {
191         return snow;
192     }
193
194     public void setSnow(Snow snow) {
195         this.snow = snow;
196     }
197 }