2016-10-29 22:22:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Xml.Linq;
|
2016-10-29 22:34:54 +00:00
|
|
|
|
using Emby.Dlna.Ssdp;
|
2016-10-29 22:22:20 +00:00
|
|
|
|
|
2016-10-29 22:34:54 +00:00
|
|
|
|
namespace Emby.Dlna.PlayTo
|
2016-10-29 22:22:20 +00:00
|
|
|
|
{
|
|
|
|
|
public class UpnpContainer : uBaseObject
|
|
|
|
|
{
|
|
|
|
|
public static uBaseObject Create(XElement container)
|
|
|
|
|
{
|
|
|
|
|
if (container == null)
|
|
|
|
|
{
|
2019-01-06 20:50:43 +00:00
|
|
|
|
throw new ArgumentNullException(nameof(container));
|
2016-10-29 22:22:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new uBaseObject
|
|
|
|
|
{
|
|
|
|
|
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)
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|