]> git.basschouten.com Git - openhab-addons.git/blob
27ed84caed28f727c0142d064f82bb8fef08413c
[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 OhmpilotRealtimeBodyDataDTO} is responsible for storing
19  * the "data" node of the JSON response
20  *
21  * @author Hannes Spenger - Initial contribution
22  */
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;
36
37     public OhmpilotRealtimeDetailsDTO getDetails() {
38         if (details == null) {
39             details = new OhmpilotRealtimeDetailsDTO();
40         }
41         return details;
42     }
43
44     public void setDetails(OhmpilotRealtimeDetailsDTO details) {
45         this.details = details;
46     }
47
48     public double getEnergyRealWACSumConsumed() {
49         return energyRealWACSumConsumed;
50     }
51
52     public void setEnergyRealWACSumConsumed(double energyRealWACSumConsumed) {
53         this.energyRealWACSumConsumed = energyRealWACSumConsumed;
54     }
55
56     public double getPowerPACSum() {
57         return powerPACSum;
58     }
59
60     public void setPowerPACSum(double powerPACSum) {
61         this.powerPACSum = powerPACSum;
62     }
63
64     public double getTemperatureChannel1() {
65         return temperatureChannel1;
66     }
67
68     public void setTemperatureChannel1(double temperatureChannel1) {
69         this.temperatureChannel1 = temperatureChannel1;
70     }
71
72     public int getErrorCode() {
73         return errorCode;
74     }
75
76     public void setErrorCode(int errorCode) {
77         this.errorCode = errorCode;
78     }
79
80     public int getStateCode() {
81         return stateCode;
82     }
83
84     public void setStateCode(int stateCode) {
85         this.stateCode = stateCode;
86     }
87 }