]> git.basschouten.com Git - openhab-addons.git/blob
39a2264d893d49e20f36f77f1824fd77be77b262
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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
14 package org.openhab.binding.touchwand.internal.dto;
15
16 import org.eclipse.jdt.annotation.NonNullByDefault;
17
18 /**
19  * The {@link TouchWandUnitData} implements unit property.
20  *
21  * @author Roie Geron - Initial contribution
22  */
23 @NonNullByDefault
24 public abstract class TouchWandUnitData {
25
26     private Integer id = 0;
27     private String name = "";
28     private String type = "";
29     private Integer nodeId = 0;
30     private Integer epId = 0;
31     private String icon = "";
32     private String connectivity = "";
33     private String status = "";
34     private boolean isFavorite = false;
35     private Integer errorCode = 0;
36     private boolean hasPowerMeter;
37     private boolean hasBattery;
38     private Object config = "";
39     private Object association = "";
40     private String customOp = "";
41     private boolean isHidden = false;
42     private String createdAt = "";
43     private String updatedAt = "";
44     private Integer roomId = 0;
45
46     public Integer getId() {
47         return id;
48     }
49
50     public void setId(int id) {
51         this.id = id;
52     }
53
54     public String getName() {
55         return name;
56     }
57
58     public void setName(String name) {
59         this.name = name;
60     }
61
62     public String getType() {
63         return type;
64     }
65
66     public void setType(String type) {
67         this.type = type;
68     }
69
70     public int getNodeId() {
71         return nodeId;
72     }
73
74     public void setNodeId(int nodeId) {
75         this.nodeId = nodeId;
76     }
77
78     public int getEpId() {
79         return epId;
80     }
81
82     public void setEpId(int epId) {
83         this.epId = epId;
84     }
85
86     public String getIcon() {
87         return icon;
88     }
89
90     public void setIcon(String icon) {
91         this.icon = icon;
92     }
93
94     public String getConnectivity() {
95         return connectivity;
96     }
97
98     public void setConnectivity(String connectivity) {
99         this.connectivity = connectivity;
100     }
101
102     public String getStatus() {
103         return status;
104     }
105
106     public void setStatus(String status) {
107         this.status = status;
108     }
109
110     public boolean getIsFavorite() {
111         return isFavorite;
112     }
113
114     public void setIsFavorite(boolean isFavorite) {
115         this.isFavorite = isFavorite;
116     }
117
118     public Integer getErrorCode() {
119         return errorCode;
120     }
121
122     public void setErrorCode(Integer errorCode) {
123         this.errorCode = errorCode;
124     }
125
126     public boolean getHasPowerMeter() {
127         return hasPowerMeter;
128     }
129
130     public void setHasPowerMeter(boolean hasPowerMeter) {
131         this.hasPowerMeter = hasPowerMeter;
132     }
133
134     public boolean getHasBattery() {
135         return hasBattery;
136     }
137
138     public void setHasBattery(boolean hasBattery) {
139         this.hasBattery = hasBattery;
140     }
141
142     public Object getConfig() {
143         return config;
144     }
145
146     public void setConfig(Object config) {
147         this.config = config;
148     }
149
150     public Object getAssociation() {
151         return association;
152     }
153
154     public void setAssociation(Object association) {
155         this.association = association;
156     }
157
158     public String getCustomOp() {
159         return customOp;
160     }
161
162     public void setCustomOp(String customOp) {
163         this.customOp = customOp;
164     }
165
166     public boolean getIsHidden() {
167         return isHidden;
168     }
169
170     public void setIsHidden(boolean isHidden) {
171         this.isHidden = isHidden;
172     }
173
174     public String getCreatedAt() {
175         return createdAt;
176     }
177
178     public void setCreatedAt(String createdAt) {
179         this.createdAt = createdAt;
180     }
181
182     public String getUpdatedAt() {
183         return updatedAt;
184     }
185
186     public void setUpdatedAt(String updatedAt) {
187         this.updatedAt = updatedAt;
188     }
189
190     public Integer getRoomId() {
191         return roomId;
192     }
193
194     public void setRoomId(Integer roomId) {
195         this.roomId = roomId;
196     }
197
198     public abstract Object getCurrStatus();
199 }