2 * Copyright (c) 2010-2020 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
14 package org.openhab.binding.touchwand.internal.dto;
16 import org.eclipse.jdt.annotation.NonNullByDefault;
19 * The {@link TouchWandUnitData} implements unit property.
21 * @author Roie Geron - Initial contribution
24 public abstract class TouchWandUnitData {
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;
46 public Integer getId() {
50 public void setId(int id) {
54 public String getName() {
58 public void setName(String name) {
62 public String getType() {
66 public void setType(String type) {
70 public int getNodeId() {
74 public void setNodeId(int nodeId) {
78 public int getEpId() {
82 public void setEpId(int epId) {
86 public String getIcon() {
90 public void setIcon(String icon) {
94 public String getConnectivity() {
98 public void setConnectivity(String connectivity) {
99 this.connectivity = connectivity;
102 public String getStatus() {
106 public void setStatus(String status) {
107 this.status = status;
110 public boolean getIsFavorite() {
114 public void setIsFavorite(boolean isFavorite) {
115 this.isFavorite = isFavorite;
118 public Integer getErrorCode() {
122 public void setErrorCode(Integer errorCode) {
123 this.errorCode = errorCode;
126 public boolean getHasPowerMeter() {
127 return hasPowerMeter;
130 public void setHasPowerMeter(boolean hasPowerMeter) {
131 this.hasPowerMeter = hasPowerMeter;
134 public boolean getHasBattery() {
138 public void setHasBattery(boolean hasBattery) {
139 this.hasBattery = hasBattery;
142 public Object getConfig() {
146 public void setConfig(Object config) {
147 this.config = config;
150 public Object getAssociation() {
154 public void setAssociation(Object association) {
155 this.association = association;
158 public String getCustomOp() {
162 public void setCustomOp(String customOp) {
163 this.customOp = customOp;
166 public boolean getIsHidden() {
170 public void setIsHidden(boolean isHidden) {
171 this.isHidden = isHidden;
174 public String getCreatedAt() {
178 public void setCreatedAt(String createdAt) {
179 this.createdAt = createdAt;
182 public String getUpdatedAt() {
186 public void setUpdatedAt(String updatedAt) {
187 this.updatedAt = updatedAt;
190 public Integer getRoomId() {
194 public void setRoomId(Integer roomId) {
195 this.roomId = roomId;
198 public abstract Object getCurrStatus();