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 InverterRealtimeBodyData} is responsible for storing
19 * the "data" node of the JSON response
21 * @author Thomas Rokohl - Initial contribution
23 public class InverterRealtimeBodyData {
25 @SerializedName("DAY_ENERGY")
26 private ValueUnit dayEnergy;
27 @SerializedName("FAC")
28 private ValueUnit fac;
29 @SerializedName("IAC")
30 private ValueUnit iac;
31 @SerializedName("IDC")
32 private ValueUnit idc;
33 @SerializedName("IDC_2")
34 private ValueUnit idc2;
35 @SerializedName("IDC_3")
36 private ValueUnit idc3;
37 @SerializedName("PAC")
38 private ValueUnit pac;
39 @SerializedName("TOTAL_ENERGY")
40 private ValueUnit totalEnergy;
41 @SerializedName("UAC")
42 private ValueUnit uac;
43 @SerializedName("UDC")
44 private ValueUnit udc;
45 @SerializedName("UDC_2")
46 private ValueUnit udc2;
47 @SerializedName("UDC_3")
48 private ValueUnit udc3;
49 @SerializedName("YEAR_ENERGY")
50 private ValueUnit yearEnergy;
51 @SerializedName("DeviceStatus")
52 private DeviceStatus deviceStatus;
54 public ValueUnit getDayEnergy() {
58 public void setDayEnergy(ValueUnit dayEnergy) {
59 this.dayEnergy = dayEnergy;
62 public ValueUnit getPac() {
66 public void setPac(ValueUnit pac) {
70 public ValueUnit getTotalEnergy() {
74 public void setTotalEnergy(ValueUnit totalEnergy) {
75 this.totalEnergy = totalEnergy;
78 public ValueUnit getYearEnergy() {
82 public void setYearEnergy(ValueUnit yearEnergy) {
83 this.yearEnergy = yearEnergy;
86 public DeviceStatus getDeviceStatus() {
87 if (deviceStatus == null) {
88 deviceStatus = new DeviceStatus();
93 public void setDeviceStatus(DeviceStatus deviceStatus) {
94 this.deviceStatus = deviceStatus;
97 public ValueUnit getFac() {
101 public void setFac(ValueUnit fac) {
105 public ValueUnit getIac() {
109 public void setIac(ValueUnit iac) {
113 public ValueUnit getIdc() {
117 public void setIdc(ValueUnit idc) {
121 public ValueUnit getIdc2() {
125 public ValueUnit getIdc3() {
129 public ValueUnit getUac() {
133 public void setUac(ValueUnit uac) {
137 public ValueUnit getUdc() {
141 public void setUdc(ValueUnit udc) {
145 public ValueUnit getUdc2() {
149 public ValueUnit getUdc3() {