]> git.basschouten.com Git - openhab-addons.git/blob
5bf5fdf0d8cdba1d43fa18298b9ec14fe29d31f3
[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.meteoblue.internal.json;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * {@link JsonUnits} models the 'units' portion of the JSON
19  * response to a weather request.
20  *
21  * @author Chris Carman - Initial contribution
22  */
23 public class JsonUnits {
24     private String time;
25     private String predictability;
26
27     @SerializedName("precipitation_probability")
28     private String precipitationProbability;
29
30     private String pressure;
31
32     @SerializedName("relativehumidity")
33     private String relativeHumidity;
34
35     private String temperature;
36
37     @SerializedName("winddirection")
38     private String windDirection;
39
40     private String precipitation;
41
42     @SerializedName("windspeed")
43     private String windSpeed;
44
45     public JsonUnits() {
46     }
47
48     public String getPredictability() {
49         return predictability;
50     }
51
52     public String getPrecipitationProbability() {
53         return precipitationProbability;
54     }
55
56     public String getPressure() {
57         return pressure;
58     }
59
60     public String getRelativeHumidity() {
61         return relativeHumidity;
62     }
63
64     public String getTemperature() {
65         return temperature;
66     }
67
68     public String getWindDirection() {
69         return windDirection;
70     }
71
72     public String getPrecipitation() {
73         return precipitation;
74     }
75
76     public String getWindSpeed() {
77         return windSpeed;
78     }
79
80     public String getTime() {
81         return time;
82     }
83 }