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
|
|
|
{
|
2020-08-20 15:04:57 -04:00
|
|
|
public class UpnpContainer : UBaseObject
|
2016-10-29 18:22:20 -04:00
|
|
|
{
|
2020-08-20 15:04:57 -04:00
|
|
|
public static UBaseObject Create(XElement container)
|
2016-10-29 18:22:20 -04:00
|
|
|
{
|
2022-10-06 14:21:23 -04:00
|
|
|
ArgumentNullException.ThrowIfNull(container);
|
2016-10-29 18:22:20 -04:00
|
|
|
|
2020-08-20 15:04:57 -04:00
|
|
|
return new UBaseObject
|
2016-10-29 18:22:20 -04:00
|
|
|
{
|
2020-08-20 15:04:57 -04: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.Class)
|
2016-10-29 18:22:20 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|