]> git.basschouten.com Git - openhab-addons.git/blob
4091ae8908f112323e3910a6653507090971e03f
[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.onecallhist;
14
15 import java.util.List;
16
17 import org.openhab.binding.openweathermap.internal.dto.onecall.Precipitation;
18 import org.openhab.binding.openweathermap.internal.dto.onecall.Weather;
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 Hourly {
33     private int dt;
34     private double temp;
35     @SerializedName("feels_like")
36     private double feelsLike;
37     private int pressure;
38     private int humidity;
39     @SerializedName("dew_point")
40     private double dewPoint;
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 double getTemp() {
62         return temp;
63     }
64
65     public void setTemp(double temp) {
66         this.temp = temp;
67     }
68
69     public double getFeelsLike() {
70         return feelsLike;
71     }
72
73     public void setFeelsLike(double feelsLike) {
74         this.feelsLike = feelsLike;
75     }
76
77     public int getPressure() {
78         return pressure;
79     }
80
81     public void setPressure(int pressure) {
82         this.pressure = pressure;
83     }
84
85     public int getHumidity() {
86         return humidity;
87     }
88
89     public void setHumidity(int humidity) {
90         this.humidity = humidity;
91     }
92
93     public double getDewPoint() {
94         return dewPoint;
95     }
96
97     public void setDewPoint(double dewPoint) {
98         this.dewPoint = dewPoint;
99     }
100
101     public int getClouds() {
102         return clouds;
103     }
104
105     public void setClouds(int clouds) {
106         this.clouds = clouds;
107     }
108
109     public int getVisibility() {
110         return visibility;
111     }
112
113     public void setVisibility(int visibility) {
114         this.visibility = visibility;
115     }
116
117     public double getWindSpeed() {
118         return windSpeed;
119     }
120
121     public void setWindSpeed(double windSpeed) {
122         this.windSpeed = windSpeed;
123     }
124
125     public int getWindDeg() {
126         return windDeg;
127     }
128
129     public void setWindDeg(int windDeg) {
130         this.windDeg = windDeg;
131     }
132
133     public double getWindGust() {
134         return windGust;
135     }
136
137     public void setWindGust(double windGust) {
138         this.windGust = windGust;
139     }
140
141     public List<Weather> getWeather() {
142         return weather;
143     }
144
145     public void setWeather(List<Weather> weather) {
146         this.weather = weather;
147     }
148
149     public Precipitation getRain() {
150         return rain;
151     }
152
153     public void setRain(Precipitation rain) {
154         this.rain = rain;
155     }
156
157     public Precipitation getSnow() {
158         return snow;
159     }
160
161     public void setSnow(Precipitation snow) {
162         this.snow = snow;
163     }
164 }