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.sonos.internal;
15 import java.io.Serializable;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * Contains the resource meta data within a browse response result
21 * "<r:resMD>..</r:resMD>". This is used for SONOS favorites.
23 * @author Dan Cunningham - Initial contribution
27 public class SonosResourceMetaData implements Serializable {
29 private static final long serialVersionUID = 7438424501599637712L;
37 public SonosResourceMetaData(String id, String parentId, String title, String upnpClass, String desc) {
40 this.parentId = parentId;
42 this.upnpClass = upnpClass;
47 * The parent id for the resource meta data
51 public String getId() {
56 * The parent id for the resource meta data
60 public String getParentId() {
65 * title from the resource meta data
69 public String getTitle() {
74 * The upnp class for the resource meta data. This can be different from the
75 * parent meta data class and should be used to match the play type over the
80 public String getUpnpClass() {
85 * The desc text for the resource meta data. This contains the service login
86 * id for streaming accounts (pandora, spotify, etc..)
90 public String getDesc() {