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.mynice.internal.xml.dto;
15 import com.thoughtworks.xstream.annotations.XStreamAlias;
19 * @author Gaƫl L'hopital - Initial contribution
21 @XStreamAlias("Properties")
22 public class Properties {
23 public enum DoorStatus {
30 public final boolean moving;
32 DoorStatus(boolean moving) {
37 @XStreamAlias("DoorStatus")
38 private String doorStatus;
39 @XStreamAlias("Obstruct")
40 private String obstruct;
41 @XStreamAlias("T4_allowed")
42 public Property t4allowed;
44 public boolean obstructed() {
45 return "1".equals(obstruct);
48 public DoorStatus status() {
49 return DoorStatus.valueOf(doorStatus.toUpperCase());