2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.sensibo.internal.dto.poddetails;
15 import java.time.ZonedDateTime;
17 import com.google.gson.annotations.SerializedName;
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.
23 * @author Arne Seime - Initial contribution.
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;
34 public ZonedDateTime getMeasurementTimestamp() {
35 if (measurementTimestamp != null) {
36 return measurementTimestamp.time;