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 java.util.ArrayList;
17 import java.util.List;
19 import org.eclipse.jdt.annotation.NonNullByDefault;
22 * The {@link TouchWandAlarmSensorCurrentStatus} implements Alarm Sensor unit
23 * CurrentStatus data property.
25 * @author Roie Geron - Initial contribution
29 public class TouchWandAlarmSensorCurrentStatus {
32 private List<Sensor> sensorsStatus = new ArrayList<Sensor>();
33 private List<AlarmEvent> alarmsStatus = new ArrayList<AlarmEvent>();
34 private List<BinarySensorEvent> bSensorsStatus = new ArrayList<BinarySensorEvent>();
36 public void setBatt(Integer batt) {
40 public int getBatt() {
44 public void setSensorsStatus(List<Sensor> sensorsStatus) {
45 this.sensorsStatus = sensorsStatus;
48 public List<Sensor> getSensorsStatus() {
52 public List<BinarySensorEvent> getbSensorsStatus() {
53 return bSensorsStatus;
56 public void setbSensorsStatus(List<BinarySensorEvent> bSensorsStatus) {
57 this.bSensorsStatus = bSensorsStatus;
60 public List<AlarmEvent> getAlarmsStatus() {
64 public void setAlarmsStatus(List<AlarmEvent> alarmsStatus) {
65 this.alarmsStatus = alarmsStatus;
68 public static class Alarm {
73 public static class AlarmEvent {
75 Alarm alarm = new Alarm();
78 public static class Sensor {
83 public static class BinarySensor {
88 public static class BinarySensorEvent {
89 public int sensorType;
90 public BinarySensor sensor = new BinarySensor();