2020-01-22 15:00:07 -05:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 14:54:44 -05:00
|
|
|
using System;
|
2016-10-29 18:22:20 -04:00
|
|
|
using System.Xml.Linq;
|
2016-10-29 18:34:54 -04:00
|
|
|
using Emby.Dlna.Ssdp;
|
2016-10-29 18:22:20 -04:00
|
|
|
|
2016-10-29 18:34:54 -04:00
|
|
|
namespace Emby.Dlna.PlayTo
|
2016-10-29 18:22:20 -04:00
|
|
|
{
|
|
|
|
public class UpnpContainer : uBaseObject
|
|
|
|
{
|
|
|
|
public static uBaseObject Create(XElement container)
|
|
|
|
{
|
|
|
|
if (container == null)
|
|
|
|
{
|
2019-01-06 15:50:43 -05:00
|
|
|
throw new ArgumentNullException(nameof(container));
|
2016-10-29 18:22:20 -04: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)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|