2 * Copyright (c) 2010-2024 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.meteoalerte.internal.json;
15 import java.util.Optional;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
20 import com.google.gson.annotations.SerializedName;
23 * The {@link Record} is the Java class used to map the JSON
24 * response to the webservice request.
26 * @author Gaƫl L'hopital - Initial contribution
30 @SerializedName("datasetid")
31 private String datasetId = "";
32 @SerializedName("recordid")
33 private String recordId = "";
34 @SerializedName("record_timestamp")
35 private String recordTimestamp = "";
36 @SerializedName("fields")
37 private @Nullable ResponseFieldDTO responseFieldDTO;
39 public String getDatasetId() {
43 public String getRecordId() {
47 public String getRecordTimestamp() {
48 return recordTimestamp;
51 public Optional<ResponseFieldDTO> getResponseFieldDTO() {
52 return Optional.ofNullable(responseFieldDTO);