jellyfin/MediaBrowser.Dlna/PlayTo/UpnpContainer.cs

27 lines
794 B
C#
Raw Normal View History

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