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 TouchWandUnitDataWallController} implements WallController unit
19 * @author Roie Geron - Initial contribution
21 public class TouchWandUnitDataWallController extends TouchWandUnitData {
23 private CurrStatus currStatus = new CurrStatus();
25 // currStatus can be null since the object is created by gson fromJson
26 // in case the key is null or not exist , the variable will be null.
27 // if this is the case , default status is created
30 public Csc getCurrStatus() {
31 if (currStatus == null) {
32 currStatus = new CurrStatus();
34 return currStatus.getCsc();
37 public void setCurrStatus(CurrStatus currStatus) {
38 this.currStatus = currStatus;