mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
29 lines
809 B
C#
29 lines
809 B
C#
using System;
|
|
using System.Xml.Linq;
|
|
|
|
namespace MediaBrowser.Dlna.PlayTo
|
|
{
|
|
public class Argument
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public string Direction { get; set; }
|
|
|
|
public string RelatedStateVariable { get; set; }
|
|
|
|
public static Argument FromXml(XElement container)
|
|
{
|
|
if (container == null)
|
|
{
|
|
throw new ArgumentNullException("container");
|
|
}
|
|
|
|
return new Argument
|
|
{
|
|
Name = container.GetValue(uPnpNamespaces.svc + "name"),
|
|
Direction = container.GetValue(uPnpNamespaces.svc + "direction"),
|
|
RelatedStateVariable = container.GetValue(uPnpNamespaces.svc + "relatedStateVariable")
|
|
};
|
|
}
|
|
}
|
|
}
|