2 * Copyright (c) 2010-2021 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("PAC")
34 private ValueUnit pac;
35 @SerializedName("TOTAL_ENERGY")
36 private ValueUnit totalEnergy;
37 @SerializedName("UAC")
38 private ValueUnit uac;
39 @SerializedName("UDC")
40 private ValueUnit udc;
41 @SerializedName("YEAR_ENERGY")
42 private ValueUnit yearEnergy;
43 @SerializedName("DeviceStatus")
44 private DeviceStatus deviceStatus;
46 public ValueUnit getDayEnergy() {
50 public void setDayEnergy(ValueUnit dayEnergy) {
51 this.dayEnergy = dayEnergy;
54 public ValueUnit getPac() {
58 public void setPac(ValueUnit pac) {
62 public ValueUnit getTotalEnergy() {
66 public void setTotalEnergy(ValueUnit totalEnergy) {
67 this.totalEnergy = totalEnergy;
70 public ValueUnit getYearEnergy() {
74 public void setYearEnergy(ValueUnit yearEnergy) {
75 this.yearEnergy = yearEnergy;
78 public DeviceStatus getDeviceStatus() {
79 if (deviceStatus == null) {
80 deviceStatus = new DeviceStatus();
85 public void setDeviceStatus(DeviceStatus deviceStatus) {
86 this.deviceStatus = deviceStatus;
89 public ValueUnit getFac() {
93 public void setFac(ValueUnit fac) {
97 public ValueUnit getIac() {
101 public void setIac(ValueUnit iac) {
105 public ValueUnit getIdc() {
109 public void setIdc(ValueUnit idc) {
113 public ValueUnit getUac() {
117 public void setUac(ValueUnit uac) {
121 public ValueUnit getUdc() {
125 public void setUdc(ValueUnit udc) {