]> git.basschouten.com Git - openhab-addons.git/blob
4e622ae8c31f60e99e7424cc70d111018267fbf3
[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 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("rain")
69     @Expose
70     private Rain rain;
71     @SerializedName("snow")
72     @Expose
73     private Snow snow;
74
75     public int getDt() {
76         return dt;
77     }
78
79     public void setDt(int dt) {
80         this.dt = dt;
81     }
82
83     public double getTemp() {
84         return temp;
85     }
86
87     public void setTemp(double temp) {
88         this.temp = temp;
89     }
90
91     public double getFeelsLike() {
92         return feelsLike;
93     }
94
95     public void setFeelsLike(double feelsLike) {
96         this.feelsLike = feelsLike;
97     }
98
99     public int getPressure() {
100         return pressure;
101     }
102
103     public void setPressure(int pressure) {
104         this.pressure = pressure;
105     }
106
107     public int getHumidity() {
108         return humidity;
109     }
110
111     public void setHumidity(int humidity) {
112         this.humidity = humidity;
113     }
114
115     public double getDewPoint() {
116         return dewPoint;
117     }
118
119     public void setDewPoint(double dewPoint) {
120         this.dewPoint = dewPoint;
121     }
122
123     public int getClouds() {
124         return clouds;
125     }
126
127     public void setClouds(int clouds) {
128         this.clouds = clouds;
129     }
130
131     public int getVisibility() {
132         return visibility;
133     }
134
135     public void setVisibility(int visibility) {
136         this.visibility = visibility;
137     }
138
139     public double getWindSpeed() {
140         return windSpeed;
141     }
142
143     public void setWindSpeed(double windSpeed) {
144         this.windSpeed = windSpeed;
145     }
146
147     public int getWindDeg() {
148         return windDeg;
149     }
150
151     public void setWindDeg(int windDeg) {
152         this.windDeg = windDeg;
153     }
154
155     public double getWindGust() {
156         return windGust;
157     }
158
159     public void setWindGust(double windGust) {
160         this.windGust = windGust;
161     }
162
163     public List<Weather> getWeather() {
164         return weather;
165     }
166
167     public void setWeather(List<Weather> weather) {
168         this.weather = weather;
169     }
170
171     public Rain getRain() {
172         return rain;
173     }
174
175     public void setRain(Rain rain) {
176         this.rain = rain;
177     }
178
179     public Snow getSnow() {
180         return snow;
181     }
182
183     public void setSnow(Snow snow) {
184         this.snow = snow;
185     }
186 }