]> git.basschouten.com Git - openhab-addons.git/blob
854b54bc2357b45309e7622fa8d73d97ed09d3af
[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 Hourly {
30     private int dt;
31     private double temp;
32     @SerializedName("feels_like")
33     private double feelsLike;
34     private int pressure;
35     private int humidity;
36     @SerializedName("dew_point")
37     private double dewPoint;
38     private int clouds;
39     private int visibility;
40     @SerializedName("wind_speed")
41     private double windSpeed;
42     @SerializedName("wind_deg")
43     private int windDeg;
44     @SerializedName("wind_gust")
45     private double windGust;
46     private List<Weather> weather = null;
47     private double pop;
48     private Precipitation rain;
49     private Precipitation snow;
50
51     public int getDt() {
52         return dt;
53     }
54
55     public void setDt(int dt) {
56         this.dt = dt;
57     }
58
59     public double getTemp() {
60         return temp;
61     }
62
63     public void setTemp(double temp) {
64         this.temp = temp;
65     }
66
67     public double getFeelsLike() {
68         return feelsLike;
69     }
70
71     public void setFeelsLike(double feelsLike) {
72         this.feelsLike = feelsLike;
73     }
74
75     public int getPressure() {
76         return pressure;
77     }
78
79     public void setPressure(int pressure) {
80         this.pressure = pressure;
81     }
82
83     public int getHumidity() {
84         return humidity;
85     }
86
87     public void setHumidity(int humidity) {
88         this.humidity = humidity;
89     }
90
91     public double getDewPoint() {
92         return dewPoint;
93     }
94
95     public void setDewPoint(double dewPoint) {
96         this.dewPoint = dewPoint;
97     }
98
99     public int getClouds() {
100         return clouds;
101     }
102
103     public void setClouds(int clouds) {
104         this.clouds = clouds;
105     }
106
107     public int getVisibility() {
108         return visibility;
109     }
110
111     public void setVisibility(int visibility) {
112         this.visibility = visibility;
113     }
114
115     public double getWindSpeed() {
116         return windSpeed;
117     }
118
119     public void setWindSpeed(double windSpeed) {
120         this.windSpeed = windSpeed;
121     }
122
123     public int getWindDeg() {
124         return windDeg;
125     }
126
127     public void setWindDeg(int windDeg) {
128         this.windDeg = windDeg;
129     }
130
131     public double getWindGust() {
132         return windGust;
133     }
134
135     public void setWindGust(double windGust) {
136         this.windGust = windGust;
137     }
138
139     public List<Weather> getWeather() {
140         return weather;
141     }
142
143     public void setWeather(List<Weather> weather) {
144         this.weather = weather;
145     }
146
147     public double getPop() {
148         return pop;
149     }
150
151     public void setPop(double pop) {
152         this.pop = pop;
153     }
154
155     public Precipitation getRain() {
156         return rain;
157     }
158
159     public void setRain(Precipitation rain) {
160         this.rain = rain;
161     }
162
163     public Precipitation getSnow() {
164         return snow;
165     }
166
167     public void setSnow(Precipitation snow) {
168         this.snow = snow;
169     }
170 }