]> git.basschouten.com Git - openhab-addons.git/blob
b3ecc150893350ae926dd6fcd8a1e37bf3a8b2a1
[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 TouchWandUnitDataWallController} implements WallController unit
17  * property.
18  *
19  * @author Roie Geron - Initial contribution
20  */
21 public class TouchWandUnitDataWallController extends TouchWandUnitData {
22
23     private CurrStatus currStatus = new CurrStatus();
24
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
28
29     @Override
30     public Csc getCurrStatus() {
31         if (currStatus == null) {
32             currStatus = new CurrStatus();
33         }
34         return currStatus.getCsc();
35     }
36
37     public void setCurrStatus(CurrStatus currStatus) {
38         this.currStatus = currStatus;
39     }
40 }