]> git.basschouten.com Git - openhab-addons.git/blob
4816a29aea525d41cd2dd4784b66362662fc2e51
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link TouchWandUnitData} implements unit property.
19  *
20  * @author Roie Geron - Initial contribution
21  */
22 @NonNullByDefault
23 public abstract class TouchWandUnitData {
24
25     private Integer id = 0;
26     private String name = "";
27     private String type = "";
28     private Integer nodeId = 0;
29     private Integer epId = 0;
30     private String icon = "";
31     private String connectivity = "";
32     private String status = "";
33     private boolean isFavorite = false;
34     private Integer errorCode = 0;
35     private boolean hasPowerMeter;
36     private boolean hasBattery;
37     private Object config = "";
38     private Object association = "";
39     private String customOp = "";
40     private boolean isHidden = false;
41     private String createdAt = "";
42     private String updatedAt = "";
43     private Integer roomId = 0;
44
45     public Integer getId() {
46         return id;
47     }
48
49     public void setId(int id) {
50         this.id = id;
51     }
52
53     public String getName() {
54         return name;
55     }
56
57     public void setName(String name) {
58         this.name = name;
59     }
60
61     public String getType() {
62         return type;
63     }
64
65     public void setType(String type) {
66         this.type = type;
67     }
68
69     public int getNodeId() {
70         return nodeId;
71     }
72
73     public void setNodeId(int nodeId) {
74         this.nodeId = nodeId;
75     }
76
77     public int getEpId() {
78         return epId;
79     }
80
81     public void setEpId(int epId) {
82         this.epId = epId;
83     }
84
85     public String getIcon() {
86         return icon;
87     }
88
89     public void setIcon(String icon) {
90         this.icon = icon;
91     }
92
93     public String getConnectivity() {
94         return connectivity;
95     }
96
97     public void setConnectivity(String connectivity) {
98         this.connectivity = connectivity;
99     }
100
101     public String getStatus() {
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 }