]> git.basschouten.com Git - openhab-addons.git/blob
5f29a88e3c7aa8105d007f09c8544cdd45f2d427
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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
14 package org.openhab.binding.touchwand.internal.dto;
15
16 /**
17  * The {@link TouchWandUnitDataWallController} implements WallController unit
18  * property.
19  *
20  * @author Roie Geron - Initial contribution
21  */
22 public class TouchWandUnitDataWallController extends TouchWandUnitData {
23
24     private CurrStatus currStatus;
25
26     @Override
27     public Integer getCurrStatus() {
28         if (currStatus != null) {
29             return currStatus.getCsc().getKeyAttr();
30         } else {
31             return 0;
32         }
33     }
34
35     public void setCurrStatus(CurrStatus currStatus) {
36         this.currStatus = currStatus;
37     }
38 }