]> git.basschouten.com Git - openhab-addons.git/blob
5c78785462081816caed1ef05b28e59a9cc1e773
[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.fronius.internal.api;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link MeterRealtimeBody} is responsible for storing
19  * the "body" node of the JSON response
20  *
21  * @author Jimmy Tanagra - Initial contribution
22  */
23 public class MeterRealtimeBodyDTO {
24     @SerializedName("Data")
25     private MeterRealtimeBodyDataDTO data;
26
27     public MeterRealtimeBodyDataDTO getData() {
28         if (data == null) {
29             data = new MeterRealtimeBodyDataDTO();
30         }
31         return data;
32     }
33
34     public void setData(MeterRealtimeBodyDataDTO data) {
35         this.data = data;
36     }
37 }