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.fronius.internal.api;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link OhmpilotRealtimeBodyData} is responsible for storing
19 * the "data" node of the JSON response
21 * @author Hannes Spenger - Initial contribution
23 public class OhmpilotRealtimeBodyDataDTO {
24 @SerializedName("Details")
25 private OhmpilotRealtimeDetailsDTO details;
26 @SerializedName("EnergyReal_WAC_Sum_Consumed")
27 private double energyRealWACSumConsumed;
28 @SerializedName("PowerReal_PAC_Sum")
29 private double powerPACSum;
30 @SerializedName("Temperature_Channel_1")
31 private double temperatureChannel1;
32 @SerializedName("CodeOfError")
33 private int errorCode;
34 @SerializedName("CodeOfState")
35 private int stateCode;
37 public OhmpilotRealtimeDetailsDTO getDetails() {
38 if (details == null) {
39 details = new OhmpilotRealtimeDetailsDTO();
44 public void setDetails(OhmpilotRealtimeDetailsDTO details) {
45 this.details = details;
48 public double getEnergyRealWACSumConsumed() {
49 return energyRealWACSumConsumed;
52 public void setEnergyRealWACSumConsumed(double energyRealWACSumConsumed) {
53 this.energyRealWACSumConsumed = energyRealWACSumConsumed;
56 public double getPowerPACSum() {
60 public void setPowerPACSum(double powerPACSum) {
61 this.powerPACSum = powerPACSum;
64 public double getTemperatureChannel1() {
65 return temperatureChannel1;
68 public void setTemperatureChannel1(double temperatureChannel1) {
69 this.temperatureChannel1 = temperatureChannel1;
72 public int getErrorCode() {
76 public void setErrorCode(int errorCode) {
77 this.errorCode = errorCode;
80 public int getStateCode() {
84 public void setStateCode(int stateCode) {
85 this.stateCode = stateCode;