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 BridgeApiLockStateDto} class defines the Data Transfer Object (POJO) for the Nuki Bridge API /lockState
19 * @author Markus Katter - Initial contribution
20 * @contributer Christian Hoefler - Door sensor integration
22 public class BridgeApiLockStateDto {
25 private String stateName;
26 private boolean batteryCritical;
27 private int doorsensorState;
28 private boolean success;
30 public int getState() {
34 public void setState(int state) {
38 public String getStateName() {
42 public void setStateName(String stateName) {
43 this.stateName = stateName;
46 public boolean isBatteryCritical() {
47 return batteryCritical;
50 public void setBatteryCritical(boolean batteryCritical) {
51 this.batteryCritical = batteryCritical;
54 public int getDoorsensorState() {
55 return doorsensorState;
58 public void setDoorsensorState(int doorsensorState) {
59 this.doorsensorState = doorsensorState;
62 public boolean isSuccess() {
66 public void setSuccess(boolean success) {
67 this.success = success;