aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/PlayTo/UpnpContainer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Dlna/PlayTo/UpnpContainer.cs')
-rw-r--r--Emby.Dlna/PlayTo/UpnpContainer.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/Emby.Dlna/PlayTo/UpnpContainer.cs b/Emby.Dlna/PlayTo/UpnpContainer.cs
new file mode 100644
index 0000000000..e044d6b303
--- /dev/null
+++ b/Emby.Dlna/PlayTo/UpnpContainer.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Xml.Linq;
+using MediaBrowser.Dlna.Ssdp;
+
+namespace MediaBrowser.Dlna.PlayTo
+{
+ public class UpnpContainer : uBaseObject
+ {
+ public static uBaseObject Create(XElement container)
+ {
+ if (container == null)
+ {
+ throw new ArgumentNullException("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)
+ };
+ }
+ }
+}