mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
29 lines
812 B
C#
29 lines
812 B
C#
#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)
|
|
{
|
|
if (container == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(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)
|
|
};
|
|
}
|
|
}
|
|
}
|