]> git.basschouten.com Git - openhab-addons.git/blob
edf312c7d8fb58fc6bde8a338be6b8e40bbacbdd
[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.onecall;
14
15 import java.util.List;
16
17 import org.openhab.binding.openweathermap.internal.dto.forecast.daily.FeelsLikeTemp;
18 import org.openhab.binding.openweathermap.internal.dto.forecast.daily.Temp;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * Holds the data from the <code>daily</code> object of the JSON response of the One Call APIs.
24  *
25  * @author Wolfgang Klimt - Initial contribution
26  */
27 public class Daily {
28     private int dt;
29     private int sunrise;
30     private int sunset;
31     private Temp temp;
32     @SerializedName("feels_like")
33     private FeelsLikeTemp feelsLikeTemp;
34     private int pressure;
35     private int humidity;
36     @SerializedName("dew_point")
37     private double dewPoint;
38     @SerializedName("wind_speed")
39     private double windSpeed;
40     @SerializedName("wind_deg")
41     private int windDeg;
42     @SerializedName("wind_gust")
43     private double windGust;
44     private List<Weather> weather = null;
45     private int clouds;
46     private double pop;
47     private int visibility;
48     private double rain;
49     private double snow;
50     private double uvi;
51
52     public int getDt() {
53         return dt;
54     }
55
56     public int getSunrise() {
57         return sunrise;
58     }
59
60     public int getSunset() {
61         return sunset;
62     }
63
64     public Temp getTemp() {
65         return temp;
66     }
67
68     public FeelsLikeTemp getFeelsLike() {
69         return feelsLikeTemp;
70     }
71
72     public int getPressure() {
73         return pressure;
74     }
75
76     public int getHumidity() {
77         return humidity;
78     }
79
80     public double getDewPoint() {
81         return dewPoint;
82     }
83
84     public double getWindSpeed() {
85         return windSpeed;
86     }
87
88     public int getWindDeg() {
89         return windDeg;
90     }
91
92     public double getWindGust() {
93         return windGust;
94     }
95
96     public List<Weather> getWeather() {
97         return weather;
98     }
99
100     public int getClouds() {
101         return clouds;
102     }
103
104     public double getPop() {
105         return pop;
106     }
107
108     public double getRain() {
109         return rain;
110     }
111
112     public double getUvi() {
113         return uvi;
114     }
115
116     public int getVisibility() {
117         return visibility;
118     }
119
120     public double getSnow() {
121         return snow;
122     }
123 }