]> git.basschouten.com Git - openhab-addons.git/blob
3a2d750311c51c4aa929b8804ccee998f9b5a0a1
[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.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 Daily {
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 Temp temp;
44     @SerializedName("feels_like")
45     @Expose
46     private FeelsLike 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("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("clouds")
69     @Expose
70     private int clouds;
71     @SerializedName("pop")
72     @Expose
73     private double pop;
74     @SerializedName("visibility")
75     @Expose
76     private int visibility;
77     @SerializedName("rain")
78     @Expose
79     private double rain;
80     @SerializedName("snow")
81     @Expose
82     private double snow;
83     @SerializedName("uvi")
84     @Expose
85     private double uvi;
86
87     public int getDt() {
88         return dt;
89     }
90
91     public void setDt(int dt) {
92         this.dt = dt;
93     }
94
95     public int getSunrise() {
96         return sunrise;
97     }
98
99     public void setSunrise(int sunrise) {
100         this.sunrise = sunrise;
101     }
102
103     public int getSunset() {
104         return sunset;
105     }
106
107     public void setSunset(int sunset) {
108         this.sunset = sunset;
109     }
110
111     public Temp getTemp() {
112         return temp;
113     }
114
115     public void setTemp(Temp temp) {
116         this.temp = temp;
117     }
118
119     public FeelsLike getFeelsLike() {
120         return feelsLike;
121     }
122
123     public void setFeelsLike(FeelsLike feelsLike) {
124         this.feelsLike = feelsLike;
125     }
126
127     public int getPressure() {
128         return pressure;
129     }
130
131     public void setPressure(int pressure) {
132         this.pressure = pressure;
133     }
134
135     public int getHumidity() {
136         return humidity;
137     }
138
139     public void setHumidity(int humidity) {
140         this.humidity = humidity;
141     }
142
143     public double getDewPoint() {
144         return dewPoint;
145     }
146
147     public void setDewPoint(double dewPoint) {
148         this.dewPoint = dewPoint;
149     }
150
151     public double getWindSpeed() {
152         return windSpeed;
153     }
154
155     public void setWindSpeed(double windSpeed) {
156         this.windSpeed = windSpeed;
157     }
158
159     public int getWindDeg() {
160         return windDeg;
161     }
162
163     public void setWindDeg(int windDeg) {
164         this.windDeg = windDeg;
165     }
166
167     public double getWindGust() {
168         return windGust;
169     }
170
171     public void setWindGust(double windGust) {
172         this.windGust = windGust;
173     }
174
175     public List<Weather> getWeather() {
176         return weather;
177     }
178
179     public void setWeather(List<Weather> weather) {
180         this.weather = weather;
181     }
182
183     public int getClouds() {
184         return clouds;
185     }
186
187     public void setClouds(int clouds) {
188         this.clouds = clouds;
189     }
190
191     public double getPop() {
192         return pop;
193     }
194
195     public void setPop(double pop) {
196         this.pop = pop;
197     }
198
199     public double getRain() {
200         return rain;
201     }
202
203     public void setRain(double rain) {
204         this.rain = rain;
205     }
206
207     public double getUvi() {
208         return uvi;
209     }
210
211     public void setUvi(double uvi) {
212         this.uvi = uvi;
213     }
214
215     public int getVisibility() {
216         return visibility;
217     }
218
219     public void setVisibility(int visibility) {
220         this.visibility = visibility;
221     }
222
223     public double getSnow() {
224         return snow;
225     }
226
227     public void setSnow(double snow) {
228         this.snow = snow;
229     }
230 }