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.paradoxalarm.internal.model;
16 * The {@link ZoneStateFlags} Paradox zone state flags. Retrieved and parsed from RAM memory responses.
18 * @author Konstantin Polihronov - Initial contribution
20 public class ZoneState {
21 private boolean isOpened;
22 private boolean isTampered;
23 private boolean hasLowBattery;
25 public ZoneState(boolean isOpened, boolean isTampered, boolean hasLowBattery) {
26 this.isOpened = isOpened;
27 this.isTampered = isTampered;
28 this.hasLowBattery = hasLowBattery;
31 public boolean isOpened() {
35 public void setOpened(boolean isOpened) {
36 this.isOpened = isOpened;
39 public boolean isTampered() {
43 public void setTampered(boolean isTampered) {
44 this.isTampered = isTampered;
47 public boolean hasLowBattery() {
51 public void setHasLowBattery(boolean hasLowBattery) {
52 this.hasLowBattery = hasLowBattery;