You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/Emby.Dlna/PlayTo/UpnpContainer.cs

26 lines
739 B

#pragma warning disable CS1591
using System;
using System.Xml.Linq;
using Emby.Dlna.Ssdp;
namespace Emby.Dlna.PlayTo
{
public class UpnpContainer : UBaseObject
{
public static UBaseObject Create(XElement container)
{
ArgumentNullException.ThrowIfNull(container);
return new UBaseObject
{
Id = container.GetAttributeValue(UPnpNamespaces.Id),
ParentId = container.GetAttributeValue(UPnpNamespaces.ParentId),
Title = container.GetValue(UPnpNamespaces.Title),
IconUrl = container.GetValue(UPnpNamespaces.Artwork),
UpnpClass = container.GetValue(UPnpNamespaces.Class)
};
}
}
}