mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 18:42:52 -07:00
25 lines
701 B
C#
25 lines
701 B
C#
using System;
|
|
using System.Xml.Linq;
|
|
|
|
namespace MediaBrowser.Dlna.PlayTo
|
|
{
|
|
public class uContainer : uBaseObject
|
|
{
|
|
new public static uBaseObject Create(XElement container)
|
|
{
|
|
if (container == null)
|
|
{
|
|
throw new ArgumentNullException("container");
|
|
}
|
|
|
|
return new uBaseObject
|
|
{
|
|
Id = (string)container.Attribute(uPnpNamespaces.Id),
|
|
ParentId = (string)container.Attribute(uPnpNamespaces.ParentId),
|
|
Title = (string)container.Element(uPnpNamespaces.title),
|
|
IconUrl = container.GetValue(uPnpNamespaces.Artwork)
|
|
};
|
|
}
|
|
}
|
|
}
|