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 java.util.List;
17 import org.eclipse.jdt.annotation.NonNull;
19 import com.thoughtworks.xstream.annotations.XStreamAlias;
20 import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
24 * @author Gaƫl L'hopital - Initial contribution
30 private String source;
32 private String target;
34 private String protocolType;
36 private String protocolVersion;
38 public CommandType type;
39 @XStreamAlias("Error")
42 @XStreamAlias("Devices")
43 private List<Device> devices;
45 public @NonNull List<Device> getDevices() {
46 List<Device> localDevices = devices;
47 return localDevices == null ? List.of() : localDevices;