jellyfin/MediaBrowser.Dlna/PlayTo/UpnpContainer.cs

26 lines
768 B
C#
Raw Normal View History

2014-02-26 21:31:47 +00:00
using System;
using System.Xml.Linq;
namespace MediaBrowser.Dlna.PlayTo
{
2014-04-22 17:25:54 +00:00
public class UpnpContainer : uBaseObject
2014-02-26 21:31:47 +00:00
{
new public static uBaseObject Create(XElement container)
{
if (container == null)
{
throw new ArgumentNullException("container");
}
return new uBaseObject
{
2014-04-22 17:25:54 +00:00
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)
2014-02-26 21:31:47 +00:00
};
}
}
}