]> git.basschouten.com Git - openhab-addons.git/blob
720a6f6797b289136a22b7f057b107dc1aee55dd
[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 InverterRealtimeResponse} is responsible for storing
19  * the response from the realtime api
20  *
21  * @author Thomas Rokohl - Initial contribution
22  */
23 public class InverterRealtimeResponse extends BaseFroniusResponse {
24
25     @SerializedName("Body")
26     private InverterRealtimeBody body;
27
28     public InverterRealtimeBody getBody() {
29         if (body == null) {
30             body = new InverterRealtimeBody();
31         }
32         return body;
33     }
34
35     public void setBody(InverterRealtimeBody body) {
36         this.body = body;
37     }
38 }