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