2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.touchwand.internal.dto;
16 * The {@link TouchWandUnitData} implements unit property.
18 * @author Roie Geron - Initial contribution
20 public abstract class TouchWandUnitData {
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;
42 public Integer getId() {
46 public void setId(int id) {
50 public String getName() {
54 public void setName(String name) {
58 public String getType() {
62 public void setType(String type) {
66 public int getNodeId() {
70 public void setNodeId(int nodeId) {
74 public int getEpId() {
78 public void setEpId(int epId) {
82 public String getIcon() {
86 public void setIcon(String icon) {
90 public String getConnectivity() {
94 public void setConnectivity(String connectivity) {
95 this.connectivity = connectivity;
98 public String getStatus() {
100 status = new String("");
105 public void setStatus(String status) {
106 this.status = status;
109 public boolean getIsFavorite() {
113 public void setIsFavorite(boolean isFavorite) {
114 this.isFavorite = isFavorite;
117 public Integer getErrorCode() {
121 public void setErrorCode(Integer errorCode) {
122 this.errorCode = errorCode;
125 public boolean getHasPowerMeter() {
126 return hasPowerMeter;
129 public void setHasPowerMeter(boolean hasPowerMeter) {
130 this.hasPowerMeter = hasPowerMeter;
133 public boolean getHasBattery() {
137 public void setHasBattery(boolean hasBattery) {
138 this.hasBattery = hasBattery;
141 public Object getConfig() {
145 public void setConfig(Object config) {
146 this.config = config;
149 public Object getAssociation() {
153 public void setAssociation(Object association) {
154 this.association = association;
157 public String getCustomOp() {
161 public void setCustomOp(String customOp) {
162 this.customOp = customOp;
165 public boolean getIsHidden() {
169 public void setIsHidden(boolean isHidden) {
170 this.isHidden = isHidden;
173 public String getCreatedAt() {
177 public void setCreatedAt(String createdAt) {
178 this.createdAt = createdAt;
181 public String getUpdatedAt() {
185 public void setUpdatedAt(String updatedAt) {
186 this.updatedAt = updatedAt;
189 public Integer getRoomId() {
193 public void setRoomId(Integer roomId) {
194 this.roomId = roomId;
197 public abstract Object getCurrStatus();