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