2 * Copyright (c) 2010-2022 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.yamahamusiccast.internal.dto;
15 import com.google.gson.annotations.SerializedName;
18 * This class represents the Status request requested from the Yamaha model/device via the API.
20 * @author Lennert Coopman - Initial contribution
25 @SerializedName("response_code")
26 private String responseCode;
28 @SerializedName("power")
31 @SerializedName("mute")
34 @SerializedName("volume")
37 @SerializedName("max_volume")
38 private int maxVolume = 1;
40 @SerializedName("input")
43 @SerializedName("sound_program")
44 private String soundProgram;
46 @SerializedName("sleep")
47 private int sleep = 0;
49 public String getResponseCode() {
50 if (responseCode == null) {
56 public String getPower() {
63 public String getMute() {
70 public int getVolume() {
74 public int getMaxVolume() {
75 // if no value is returned, set to 1 to avoid division by zero
82 public String getInput() {
89 public String getSoundProgram() {
90 if (soundProgram == null) {
96 public int getSleep() {