mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-18 03:19:06 -07:00
26 lines
764 B
C#
26 lines
764 B
C#
using System;
|
|
using System.Xml.Linq;
|
|
|
|
namespace MediaBrowser.Dlna.PlayTo
|
|
{
|
|
public class UpnpContainer : uBaseObject
|
|
{
|
|
public static uBaseObject Create(XElement container)
|
|
{
|
|
if (container == null)
|
|
{
|
|
throw new ArgumentNullException("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.uClass)
|
|
};
|
|
}
|
|
}
|
|
}
|