]> git.basschouten.com Git - openhab-addons.git/blob
bb5a6775d7470831ebb96d0ebcbf70ae47bbdf29
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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 org.openhab.binding.openweathermap.internal.dto.forecast.daily.FeelsLikeTemp;
18 import org.openhab.binding.openweathermap.internal.dto.forecast.daily.Temp;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * Holds the data from the deserialised JSON response. Created using http://www.jsonschema2pojo.org/.
24  * Settings:
25  * Annotation Style: GSON
26  * Use primitive types
27  * Use double numbers
28  * allow additional properties
29  *
30  * @author Wolfgang Klimt - Initial contribution
31  */
32 public class Daily {
33     private int dt;
34     private int sunrise;
35     private int sunset;
36     private Temp temp;
37     @SerializedName("feels_like")
38     private FeelsLikeTemp feelsLikeTemp;
39     private int pressure;
40     private int humidity;
41     @SerializedName("dew_point")
42     private double dewPoint;
43     @SerializedName("wind_speed")
44     private double windSpeed;
45     @SerializedName("wind_deg")
46     private int windDeg;
47     @SerializedName("wind_gust")
48     private double windGust;
49     private List<Weather> weather = null;
50     private int clouds;
51     private double pop;
52     private int visibility;
53     private double rain;
54     private double snow;
55     private double uvi;
56
57     public int getDt() {
58         return dt;
59     }
60
61     public void setDt(int dt) {
62         this.dt = dt;
63     }
64
65     public int getSunrise() {
66         return sunrise;
67     }
68
69     public void setSunrise(int sunrise) {
70         this.sunrise = sunrise;
71     }
72
73     public int getSunset() {
74         return sunset;
75     }
76
77     public void setSunset(int sunset) {
78         this.sunset = sunset;
79     }
80
81     public Temp getTemp() {
82         return temp;
83     }
84
85     public void setTemp(Temp temp) {
86         this.temp = temp;
87     }
88
89     public FeelsLikeTemp getFeelsLike() {
90         return feelsLikeTemp;
91     }
92
93     public void setFeelsLike(FeelsLikeTemp feelsLikeTemp) {
94         this.feelsLikeTemp = feelsLikeTemp;
95     }
96
97     public int getPressure() {
98         return pressure;
99     }
100
101     public void setPressure(int pressure) {
102         this.pressure = pressure;
103     }
104
105     public int getHumidity() {
106         return humidity;
107     }
108
109     public void setHumidity(int humidity) {
110         this.humidity = humidity;
111     }
112
113     public double getDewPoint() {
114         return dewPoint;
115     }
116
117     public void setDewPoint(double dewPoint) {
118         this.dewPoint = dewPoint;
119     }
120
121     public double getWindSpeed() {
122         return windSpeed;
123     }
124
125     public void setWindSpeed(double windSpeed) {
126         this.windSpeed = windSpeed;
127     }
128
129     public int getWindDeg() {
130         return windDeg;
131     }
132
133     public void setWindDeg(int windDeg) {
134         this.windDeg = windDeg;
135     }
136
137     public double getWindGust() {
138         return windGust;
139     }
140
141     public void setWindGust(double windGust) {
142         this.windGust = windGust;
143     }
144
145     public List<Weather> getWeather() {
146         return weather;
147     }
148
149     public void setWeather(List<Weather> weather) {
150         this.weather = weather;
151     }
152
153     public int getClouds() {
154         return clouds;
155     }
156
157     public void setClouds(int clouds) {
158         this.clouds = clouds;
159     }
160
161     public double getPop() {
162         return pop;
163     }
164
165     public void setPop(double pop) {
166         this.pop = pop;
167     }
168
169     public double getRain() {
170         return rain;
171     }
172
173     public void setRain(double rain) {
174         this.rain = rain;
175     }
176
177     public double getUvi() {
178         return uvi;
179     }
180
181     public void setUvi(double uvi) {
182         this.uvi = uvi;
183     }
184
185     public int getVisibility() {
186         return visibility;
187     }
188
189     public void setVisibility(int visibility) {
190         this.visibility = visibility;
191     }
192
193     public double getSnow() {
194         return snow;
195     }
196
197     public void setSnow(double snow) {
198         this.snow = snow;
199     }
200 }