]> git.basschouten.com Git - openhab-addons.git/blob
a62bfcf57335cd6b86228aa65b6e7c499933a5af
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.nuki.internal.dto;
14
15 /**
16  * The {@link BridgeApiLockStateRequestDto} class defines the Data Transfer Object (POJO) which is send from the Nuki
17  * Bridge to the openHAB Server.
18  *
19  * @author Markus Katter - Initial contribution
20  * @contributer Christian Hoefler - Door sensor integration
21  */
22 public class BridgeApiLockStateRequestDto {
23
24     private int nukiId;
25     private int state;
26     private String stateName;
27     private boolean batteryCritical;
28     private int doorsensorState;
29
30     public int getNukiId() {
31         return nukiId;
32     }
33
34     public void setNukiId(int nukiId) {
35         this.nukiId = nukiId;
36     }
37
38     public int getState() {
39         return state;
40     }
41
42     public void setState(int state) {
43         this.state = state;
44     }
45
46     public String getStateName() {
47         return stateName;
48     }
49
50     public void setStateName(String stateName) {
51         this.stateName = stateName;
52     }
53
54     public boolean isBatteryCritical() {
55         return batteryCritical;
56     }
57
58     public void setBatteryCritical(boolean batteryCritical) {
59         this.batteryCritical = batteryCritical;
60     }
61
62     public int getDoorsensorState() {
63         return doorsensorState;
64     }
65
66     public void setDoorsensorState(int doorsensorState) {
67         this.doorsensorState = doorsensorState;
68     }
69 }