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