]> git.basschouten.com Git - openhab-addons.git/blob
80687626957d6330872a8b1fdeb237cacad20cb9
[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.paradoxalarm.internal.model;
14
15 /**
16  * The {@link ZoneStateFlags} Paradox zone state flags. Retrieved and parsed from RAM memory responses.
17  *
18  * @author Konstantin Polihronov - Initial contribution
19  */
20 public class ZoneState {
21     private boolean isOpened;
22     private boolean isTampered;
23     private boolean hasLowBattery;
24
25     public ZoneState(boolean isOpened, boolean isTampered, boolean hasLowBattery) {
26         this.isOpened = isOpened;
27         this.isTampered = isTampered;
28         this.hasLowBattery = hasLowBattery;
29     }
30
31     public boolean isOpened() {
32         return isOpened;
33     }
34
35     public void setOpened(boolean isOpened) {
36         this.isOpened = isOpened;
37     }
38
39     public boolean isTampered() {
40         return isTampered;
41     }
42
43     public void setTampered(boolean isTampered) {
44         this.isTampered = isTampered;
45     }
46
47     public boolean hasLowBattery() {
48         return hasLowBattery;
49     }
50
51     public void setHasLowBattery(boolean hasLowBattery) {
52         this.hasLowBattery = hasLowBattery;
53     }
54 }