]> git.basschouten.com Git - openhab-addons.git/blob
cc83927bfc3b8bb5ce3ee30c198fe67886883216
[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.netatmo.internal.api.dto;
14
15 import java.time.ZonedDateTime;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.netatmo.internal.api.data.NetatmoConstants.TrendDescription;
20
21 import com.google.gson.annotations.SerializedName;
22
23 /**
24  * The {@link Dashboard} holds data returned by API call supporting the dashboard functionality.
25  *
26  * @author GaĆ«l L'hopital - Initial contribution
27  *
28  */
29 @NonNullByDefault
30 public class Dashboard {
31     private @Nullable ZonedDateTime timeUtc;
32
33     @SerializedName("BoilerOn")
34     private int boilerOn;
35
36     @SerializedName("BoilerOff")
37     private int boilerOff;
38
39     @SerializedName("Temperature")
40     private double temperature;
41
42     private TrendDescription pressureTrend = TrendDescription.UNKNOWN;
43     private TrendDescription tempTrend = TrendDescription.UNKNOWN;
44     private @Nullable ZonedDateTime dateMaxTemp;
45     private @Nullable ZonedDateTime dateMinTemp;
46     private double minTemp;
47     private double maxTemp;
48     @SerializedName("AbsolutePressure")
49     private double absolutePressure;
50
51     @SerializedName("CO2")
52     private double co2;
53
54     @SerializedName("Humidity")
55     private double humidity;
56
57     @SerializedName("Noise")
58     private double noise;
59
60     @SerializedName("Pressure")
61     private double pressure;
62
63     @SerializedName("Rain")
64     private double rain;
65     @SerializedName("sum_rain_1")
66     private double sumRain1;
67     @SerializedName("sum_rain_24")
68     private double sumRain24;
69
70     @SerializedName("WindAngle")
71     private int windAngle;
72
73     @SerializedName("GustAngle")
74     private int gustAngle;
75
76     @SerializedName("WindStrength")
77     private int windStrength;
78
79     private int maxWindStr;
80     private @Nullable ZonedDateTime dateMaxWindStr;
81
82     @SerializedName("GustStrength")
83     private int gustStrength;
84
85     private int healthIdx;
86
87     public @Nullable ZonedDateTime getTimeUtc() {
88         return timeUtc;
89     }
90
91     public int getBoilerOn() {
92         return boilerOn;
93     }
94
95     public int getBoilerOff() {
96         return boilerOff;
97     }
98
99     public double getTemperature() {
100         return temperature;
101     }
102
103     public TrendDescription getTempTrend() {
104         return tempTrend;
105     }
106
107     public @Nullable ZonedDateTime getDateMaxTemp() {
108         return dateMaxTemp;
109     }
110
111     public @Nullable ZonedDateTime getDateMinTemp() {
112         return dateMinTemp;
113     }
114
115     public double getMinTemp() {
116         return minTemp;
117     }
118
119     public double getMaxTemp() {
120         return maxTemp;
121     }
122
123     public double getAbsolutePressure() {
124         return absolutePressure;
125     }
126
127     public double getCo2() {
128         return co2;
129     }
130
131     public double getHumidity() {
132         return humidity;
133     }
134
135     public double getNoise() {
136         return noise;
137     }
138
139     public double getPressure() {
140         return pressure;
141     }
142
143     public TrendDescription getPressureTrend() {
144         return pressureTrend;
145     }
146
147     public double getRain() {
148         return rain;
149     }
150
151     public double getSumRain1() {
152         return sumRain1;
153     }
154
155     public double getSumRain24() {
156         return sumRain24;
157     }
158
159     public double getWindAngle() {
160         return windAngle;
161     }
162
163     public double getGustAngle() {
164         return gustAngle;
165     }
166
167     public double getWindStrength() {
168         return windStrength;
169     }
170
171     public double getMaxWindStr() {
172         return maxWindStr;
173     }
174
175     public @Nullable ZonedDateTime getDateMaxWindStr() {
176         return dateMaxWindStr;
177     }
178
179     public double getGustStrength() {
180         return gustStrength;
181     }
182
183     public int getHealthIdx() {
184         return healthIdx;
185     }
186 }