]> git.basschouten.com Git - openhab-addons.git/blob
3c905ad2af7e3bdd637fe5873f1c8883f4391c05
[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.darksky.internal.model;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.Nullable;
18
19 /**
20  * The {@link DarkSkyHourlyData} is the Java class used to map the JSON response to an Dark Sky request.
21  *
22  * @author Christoph Weitkamp - Initial contribution
23  */
24 public class DarkSkyHourlyData {
25     private String summary;
26     private String icon;
27     private @Nullable List<HourlyData> data;
28
29     public String getSummary() {
30         return summary;
31     }
32
33     public void setSummary(String summary) {
34         this.summary = summary;
35     }
36
37     public String getIcon() {
38         return icon;
39     }
40
41     public void setIcon(String icon) {
42         this.icon = icon;
43     }
44
45     public @Nullable List<HourlyData> getData() {
46         return data;
47     }
48
49     public void setData(@Nullable List<HourlyData> data) {
50         this.data = data;
51     }
52
53     public class HourlyData {
54         private int time;
55         private String summary;
56         private String icon;
57         private double precipIntensity;
58         private double precipProbability;
59         private String precipType;
60         private double temperature;
61         private double apparentTemperature;
62         private double dewPoint;
63         private double humidity;
64         private double pressure;
65         private double windSpeed;
66         private double windGust;
67         private int windBearing;
68         private double cloudCover;
69         private int uvIndex;
70         private double visibility;
71         private double ozone;
72         private double precipAccumulation;
73
74         public int getTime() {
75             return time;
76         }
77
78         public void setTime(int time) {
79             this.time = time;
80         }
81
82         public String getSummary() {
83             return summary;
84         }
85
86         public void setSummary(String summary) {
87             this.summary = summary;
88         }
89
90         public String getIcon() {
91             return icon;
92         }
93
94         public void setIcon(String icon) {
95             this.icon = icon;
96         }
97
98         public double getPrecipIntensity() {
99             return precipIntensity;
100         }
101
102         public void setPrecipIntensity(double precipIntensity) {
103             this.precipIntensity = precipIntensity;
104         }
105
106         public double getPrecipProbability() {
107             return precipProbability;
108         }
109
110         public void setPrecipProbability(double precipProbability) {
111             this.precipProbability = precipProbability;
112         }
113
114         public String getPrecipType() {
115             return precipType;
116         }
117
118         public void setPrecipType(String precipType) {
119             this.precipType = precipType;
120         }
121
122         public double getTemperature() {
123             return temperature;
124         }
125
126         public void setTemperature(double temperature) {
127             this.temperature = temperature;
128         }
129
130         public double getApparentTemperature() {
131             return apparentTemperature;
132         }
133
134         public void setApparentTemperature(double apparentTemperature) {
135             this.apparentTemperature = apparentTemperature;
136         }
137
138         public double getDewPoint() {
139             return dewPoint;
140         }
141
142         public void setDewPoint(double dewPoint) {
143             this.dewPoint = dewPoint;
144         }
145
146         public double getHumidity() {
147             return humidity;
148         }
149
150         public void setHumidity(double humidity) {
151             this.humidity = humidity;
152         }
153
154         public double getPressure() {
155             return pressure;
156         }
157
158         public void setPressure(double pressure) {
159             this.pressure = pressure;
160         }
161
162         public double getWindSpeed() {
163             return windSpeed;
164         }
165
166         public void setWindSpeed(double windSpeed) {
167             this.windSpeed = windSpeed;
168         }
169
170         public double getWindGust() {
171             return windGust;
172         }
173
174         public void setWindGust(double windGust) {
175             this.windGust = windGust;
176         }
177
178         public int getWindBearing() {
179             return windBearing;
180         }
181
182         public void setWindBearing(int windBearing) {
183             this.windBearing = windBearing;
184         }
185
186         public double getCloudCover() {
187             return cloudCover;
188         }
189
190         public void setCloudCover(double cloudCover) {
191             this.cloudCover = cloudCover;
192         }
193
194         public int getUvIndex() {
195             return uvIndex;
196         }
197
198         public void setUvIndex(int uvIndex) {
199             this.uvIndex = uvIndex;
200         }
201
202         public double getVisibility() {
203             return visibility;
204         }
205
206         public void setVisibility(double visibility) {
207             this.visibility = visibility;
208         }
209
210         public double getOzone() {
211             return ozone;
212         }
213
214         public void setOzone(double ozone) {
215             this.ozone = ozone;
216         }
217
218         public double getPrecipAccumulation() {
219             return precipAccumulation;
220         }
221
222         public void setPrecipAccumulation(double precipAccumulation) {
223             this.precipAccumulation = precipAccumulation;
224         }
225     }
226 }