mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
28 lines
813 B
C#
28 lines
813 B
C#
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
using System.Xml.Linq;
|
|
using Emby.Dlna.Ssdp;
|
|
|
|
namespace Emby.Dlna.PlayTo
|
|
{
|
|
public class UpnpContainer : uBaseObject
|
|
{
|
|
public static uBaseObject Create(XElement container)
|
|
{
|
|
if (container == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(container));
|
|
}
|
|
|
|
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)
|
|
};
|
|
}
|
|
}
|
|
}
|