]> git.basschouten.com Git - openhab-addons.git/blob
9f2544671ec610ab9bb469fdafd8c4d5e4260b64
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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 InverterRealtimeBodyData} is responsible for storing
19  * the "data" node of the JSON response
20  *
21  * @author Thomas Rokohl - Initial contribution
22  */
23 public class InverterRealtimeBodyData {
24
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;
53
54     public ValueUnit getDayEnergy() {
55         return dayEnergy;
56     }
57
58     public void setDayEnergy(ValueUnit dayEnergy) {
59         this.dayEnergy = dayEnergy;
60     }
61
62     public ValueUnit getPac() {
63         return pac;
64     }
65
66     public void setPac(ValueUnit pac) {
67         this.pac = pac;
68     }
69
70     public ValueUnit getTotalEnergy() {
71         return totalEnergy;
72     }
73
74     public void setTotalEnergy(ValueUnit totalEnergy) {
75         this.totalEnergy = totalEnergy;
76     }
77
78     public ValueUnit getYearEnergy() {
79         return yearEnergy;
80     }
81
82     public void setYearEnergy(ValueUnit yearEnergy) {
83         this.yearEnergy = yearEnergy;
84     }
85
86     public DeviceStatus getDeviceStatus() {
87         if (deviceStatus == null) {
88             deviceStatus = new DeviceStatus();
89         }
90         return deviceStatus;
91     }
92
93     public void setDeviceStatus(DeviceStatus deviceStatus) {
94         this.deviceStatus = deviceStatus;
95     }
96
97     public ValueUnit getFac() {
98         return fac;
99     }
100
101     public void setFac(ValueUnit fac) {
102         this.fac = fac;
103     }
104
105     public ValueUnit getIac() {
106         return iac;
107     }
108
109     public void setIac(ValueUnit iac) {
110         this.iac = iac;
111     }
112
113     public ValueUnit getIdc() {
114         return idc;
115     }
116
117     public void setIdc(ValueUnit idc) {
118         this.idc = idc;
119     }
120
121     public ValueUnit getIdc2() {
122         return idc2;
123     }
124
125     public ValueUnit getIdc3() {
126         return idc3;
127     }
128
129     public ValueUnit getUac() {
130         return uac;
131     }
132
133     public void setUac(ValueUnit uac) {
134         this.uac = uac;
135     }
136
137     public ValueUnit getUdc() {
138         return udc;
139     }
140
141     public void setUdc(ValueUnit udc) {
142         this.udc = udc;
143     }
144
145     public ValueUnit getUdc2() {
146         return udc2;
147     }
148
149     public ValueUnit getUdc3() {
150         return udc3;
151     }
152 }