jellyfin/MediaBrowser.Dlna/PlayTo/UpnpContainer.cs

27 lines
794 B
C#
Raw Normal View History

2014-02-26 21:31:47 +00:00
using System;
using System.Xml.Linq;
using MediaBrowser.Dlna.Ssdp;
2014-02-26 21:31:47 +00:00
namespace MediaBrowser.Dlna.PlayTo
{
2014-04-22 17:25:54 +00:00
public class UpnpContainer : uBaseObject
2014-02-26 21:31:47 +00:00
{
2014-04-29 03:56:20 +00:00
public static uBaseObject Create(XElement container)
2014-02-26 21:31:47 +00:00
{
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
};
}
}
}