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.squeezebox.internal.dto;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link ButtonDTO} represents a custom button that overrides existing
19 * button functionality. For example, "like song" replaces the repeat button.
21 * @author Mark Hilbush - Initial contribution
23 public class ButtonDTO {
26 * Indicates whether button is standard or custom
28 public Boolean custom;
31 * Indicates if standard button is enabled or disabled
33 public Boolean enabled;
36 * Concatenation of elements of command array
38 public String command;
43 @SerializedName("icon")
49 @SerializedName("jiveStyle")
50 public String jiveStyle;
55 @SerializedName("tooltip")
56 public String toolTip;
58 public boolean isCustom() {
59 return custom == null ? Boolean.FALSE : custom;
62 public boolean isEnabled() {
63 return enabled == null ? Boolean.FALSE : enabled;