2 * Copyright (c) 2010-2021 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.nuki.internal.dto;
16 * The {@link BridgeApiLockStateRequestDto} class defines the Data Transfer Object (POJO) which is send from the Nuki
17 * Bridge to the openHAB Server.
19 * @author Markus Katter - Initial contribution
20 * @contributer Christian Hoefler - Door sensor integration
22 public class BridgeApiLockStateRequestDto {
26 private String stateName;
27 private boolean batteryCritical;
28 private int doorsensorState;
30 public int getNukiId() {
34 public void setNukiId(int nukiId) {
38 public int getState() {
42 public void setState(int state) {
46 public String getStateName() {
50 public void setStateName(String stateName) {
51 this.stateName = stateName;
54 public boolean isBatteryCritical() {
55 return batteryCritical;
58 public void setBatteryCritical(boolean batteryCritical) {
59 this.batteryCritical = batteryCritical;
62 public int getDoorsensorState() {
63 return doorsensorState;
66 public void setDoorsensorState(int doorsensorState) {
67 this.doorsensorState = doorsensorState;