]> git.basschouten.com Git - openhab-addons.git/blob
78c0397d03cc9b04e1fff3546a73f83da8f21c74
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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("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;
45
46     public ValueUnit getDayEnergy() {
47         return dayEnergy;
48     }
49
50     public void setDayEnergy(ValueUnit dayEnergy) {
51         this.dayEnergy = dayEnergy;
52     }
53
54     public ValueUnit getPac() {
55         return pac;
56     }
57
58     public void setPac(ValueUnit pac) {
59         this.pac = pac;
60     }
61
62     public ValueUnit getTotalEnergy() {
63         return totalEnergy;
64     }
65
66     public void setTotalEnergy(ValueUnit totalEnergy) {
67         this.totalEnergy = totalEnergy;
68     }
69
70     public ValueUnit getYearEnergy() {
71         return yearEnergy;
72     }
73
74     public void setYearEnergy(ValueUnit yearEnergy) {
75         this.yearEnergy = yearEnergy;
76     }
77
78     public DeviceStatus getDeviceStatus() {
79         if (deviceStatus == null) {
80             deviceStatus = new DeviceStatus();
81         }
82         return deviceStatus;
83     }
84
85     public void setDeviceStatus(DeviceStatus deviceStatus) {
86         this.deviceStatus = deviceStatus;
87     }
88
89     public ValueUnit getFac() {
90         return fac;
91     }
92
93     public void setFac(ValueUnit fac) {
94         this.fac = fac;
95     }
96
97     public ValueUnit getIac() {
98         return iac;
99     }
100
101     public void setIac(ValueUnit iac) {
102         this.iac = iac;
103     }
104
105     public ValueUnit getIdc() {
106         return idc;
107     }
108
109     public void setIdc(ValueUnit idc) {
110         this.idc = idc;
111     }
112
113     public ValueUnit getUac() {
114         return uac;
115     }
116
117     public void setUac(ValueUnit uac) {
118         this.uac = uac;
119     }
120
121     public ValueUnit getUdc() {
122         return udc;
123     }
124
125     public void setUdc(ValueUnit udc) {
126         this.udc = udc;
127     }
128 }