]> git.basschouten.com Git - openhab-addons.git/blob
9b03a4f5bc68a9fc78917f119f3d02c47fb9cc23
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.denonmarantz.internal.xml.entities.commands;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import javax.xml.bind.annotation.XmlAccessType;
19 import javax.xml.bind.annotation.XmlAccessorType;
20 import javax.xml.bind.annotation.XmlElement;
21 import javax.xml.bind.annotation.XmlRootElement;
22
23 /**
24  * Response to an {@link AppCommandRequest}, wraps a list of {@link CommandRx}
25  *
26  * @author Jeroen Idserda - Initial contribution
27  */
28 @XmlRootElement(name = "rx")
29 @XmlAccessorType(XmlAccessType.FIELD)
30 public class AppCommandResponse {
31
32     @XmlElement(name = "cmd")
33     private List<CommandRx> commands = new ArrayList<>();
34
35     public AppCommandResponse() {
36     }
37
38     public List<CommandRx> getCommands() {
39         return commands;
40     }
41
42     public void setCommands(List<CommandRx> commands) {
43         this.commands = commands;
44     }
45 }