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.yamahamusiccast.internal.dto;
15 import org.eclipse.jdt.annotation.Nullable;
17 import com.google.gson.annotations.SerializedName;
20 * This class represents the Status request requested from the Yamaha model/device via the API.
22 * @author Lennert Coopman - Initial contribution
23 * @author Florian Hotze - Add volume in decibel
28 @SerializedName("response_code")
29 private String responseCode;
31 @SerializedName("power")
34 @SerializedName("mute")
37 @SerializedName("volume")
40 @SerializedName("actual_volume")
41 private ActualVolume actualVolume;
43 @SerializedName("max_volume")
44 private int maxVolume = 1;
46 @SerializedName("input")
49 @SerializedName("sound_program")
50 private String soundProgram;
52 @SerializedName("sleep")
53 private int sleep = 0;
55 public String getResponseCode() {
56 if (responseCode == null) {
62 public String getPower() {
69 public String getMute() {
76 public int getVolume() {
80 public @Nullable ActualVolume getActualVolume() {
84 public int getMaxVolume() {
85 // if no value is returned, set to 1 to avoid division by zero
92 public String getInput() {
99 public String getSoundProgram() {
100 if (soundProgram == null) {
106 public int getSleep() {