jellyfin/MediaBrowser.Dlna/PlayTo/UpnpContainer.cs

26 lines
764 B
C#
Raw Normal View History

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