2 * Copyright (c) 2010-2024 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.denonmarantz.internal.xml.entities.commands;
15 import java.util.ArrayList;
16 import java.util.List;
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.XmlElementWrapper;
22 import javax.xml.bind.annotation.XmlRootElement;
25 * Response to a {@link CommandTx}
27 * @author Jeroen Idserda - Initial contribution
29 @XmlRootElement(name = "cmd")
30 @XmlAccessorType(XmlAccessType.FIELD)
31 public class CommandRx {
41 private String volume;
43 private String disptype;
45 private String dispvalue;
51 @XmlElement(name = "text")
52 private List<Text> texts = new ArrayList<>();
54 @XmlElementWrapper(name = "functionrename")
55 @XmlElement(name = "list")
56 private List<RenameSourceList> renameSourceLists;
58 @XmlElementWrapper(name = "functiondelete")
59 @XmlElement(name = "list")
60 private List<DeletedSourceList> deletedSourceLists;
62 private String playstatus;
64 private String playcontents;
66 private String repeat;
68 private String shuffle;
70 private String source;
75 public String getZone1() {
79 public void setZone1(String zone1) {
83 public String getZone2() {
87 public void setZone2(String zone2) {
91 public String getZone3() {
95 public void setZone3(String zone3) {
99 public String getZone4() {
103 public void setZone4(String zone4) {
107 public String getVolume() {
111 public void setVolume(String volume) {
112 this.volume = volume;
115 public String getDisptype() {
119 public void setDisptype(String disptype) {
120 this.disptype = disptype;
123 public String getDispvalue() {
127 public void setDispvalue(String dispvalue) {
128 this.dispvalue = dispvalue;
131 public String getMute() {
135 public void setMute(String mute) {
139 public String getType() {
143 public void setType(String type) {
147 public String getPlaystatus() {
151 public void setPlaystatus(String playstatus) {
152 this.playstatus = playstatus;
155 public String getPlaycontents() {
159 public void setPlaycontents(String playcontents) {
160 this.playcontents = playcontents;
163 public String getRepeat() {
167 public void setRepeat(String repeat) {
168 this.repeat = repeat;
171 public String getShuffle() {
175 public void setShuffle(String shuffle) {
176 this.shuffle = shuffle;
179 public String getSource() {
183 public void setSource(String source) {
184 this.source = source;
187 public String getText(String key) {
188 for (Text text : texts) {
189 if (text.getId().equals(key)) {
190 return text.getValue();
196 public List<RenameSourceList> getRenameSourceLists() {
197 return renameSourceLists;
200 public List<DeletedSourceList> getDeletedSourceLists() {
201 return deletedSourceLists;