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