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.heos.internal.json.payload;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
18 import com.google.gson.annotations.SerializedName;
21 * Data class for response payloads from browse commands
23 * @author Martin van Wingerden - Initial contribution
26 public class BrowseResult {
27 public @Nullable YesNoEnum container;
28 @SerializedName("mid")
29 public @Nullable String mediaId;
30 public @Nullable YesNoEnum playable;
31 public @Nullable BrowseResultType type;
32 @SerializedName("cid")
33 public @Nullable String containerId;
34 public @Nullable String name;
35 @SerializedName("image_url")
36 public @Nullable String imageUrl;
39 public String toString() {
40 return "BrowseResult{" + "container=" + container + ", mediaId='" + mediaId + '\'' + ", playable=" + playable
41 + ", type=" + type + ", containerId='" + containerId + '\'' + ", name='" + name + '\'' + ", imageUrl='"
42 + imageUrl + '\'' + '}';