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;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
21 * The {@link TouchWandAlarmSensorCurrentStatus} implements Alarm Sensor unit
22 * CurrentStatus data property.
24 * @author Roie Geron - Initial contribution
28 public class TouchWandAlarmSensorCurrentStatus {
31 private List<Sensor> sensorsStatus = new ArrayList<Sensor>();
32 private List<AlarmEvent> alarmsStatus = new ArrayList<AlarmEvent>();
33 private List<BinarySensorEvent> bSensorsStatus = new ArrayList<BinarySensorEvent>();
35 public void setBatt(Integer batt) {
39 public int getBatt() {
43 public void setSensorsStatus(List<Sensor> sensorsStatus) {
44 this.sensorsStatus = sensorsStatus;
47 public List<Sensor> getSensorsStatus() {
51 public List<BinarySensorEvent> getbSensorsStatus() {
52 return bSensorsStatus;
55 public void setbSensorsStatus(List<BinarySensorEvent> bSensorsStatus) {
56 this.bSensorsStatus = bSensorsStatus;
59 public List<AlarmEvent> getAlarmsStatus() {
63 public void setAlarmsStatus(List<AlarmEvent> alarmsStatus) {
64 this.alarmsStatus = alarmsStatus;
67 public static class Alarm {
72 public static class AlarmEvent {
74 Alarm alarm = new Alarm();
77 public static class Sensor {
82 public static class BinarySensor {
87 public static class BinarySensorEvent {
88 public int sensorType;
89 public BinarySensor sensor = new BinarySensor();