]> git.basschouten.com Git - openhab-addons.git/blob
0157f5cf988663ca4f3aed6ca58bae6d94c3bd81
[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.sensibo.internal.dto.poddetails;
14
15 import java.time.ZonedDateTime;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * All classes in the ..binding.sensibo.dto are data transfer classes used by the GSON mapper. This class reflects a
21  * part of a request/response data structure.
22  *
23  * @author Arne Seime - Initial contribution.
24  */
25 public class MeasurementDTO {
26     public Double batteryVoltage;
27     public Double temperature;
28     public Double humidity;
29     @SerializedName("rssi")
30     public Integer wifiSignalStrength;
31     @SerializedName("time")
32     public TimeWrapperDTO measurementTimestamp;
33
34     public ZonedDateTime getMeasurementTimestamp() {
35         if (measurementTimestamp != null) {
36             return measurementTimestamp.time;
37         }
38         return null;
39     }
40 }