aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Dlna/DeviceProfile.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-26 11:06:48 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-26 11:06:48 -0400
commit4e2764e516ba62506aa85765401769d0bc7192aa (patch)
tree38a542cb18078285031a38007c5149474eac4917 /MediaBrowser.Controller/Dlna/DeviceProfile.cs
parent31e8288393bead548e815a081c34d7e688fa0643 (diff)
Create profile xml structure
Diffstat (limited to 'MediaBrowser.Controller/Dlna/DeviceProfile.cs')
-rw-r--r--MediaBrowser.Controller/Dlna/DeviceProfile.cs40
1 files changed, 23 insertions, 17 deletions
diff --git a/MediaBrowser.Controller/Dlna/DeviceProfile.cs b/MediaBrowser.Controller/Dlna/DeviceProfile.cs
index f34c4bf645..f5aff02629 100644
--- a/MediaBrowser.Controller/Dlna/DeviceProfile.cs
+++ b/MediaBrowser.Controller/Dlna/DeviceProfile.cs
@@ -1,9 +1,12 @@
using MediaBrowser.Model.Entities;
using System;
using System.Linq;
+using System.Runtime.Serialization;
+using System.Xml.Serialization;
namespace MediaBrowser.Controller.Dlna
{
+ [XmlRoot("Profile")]
public class DeviceProfile
{
/// <summary>
@@ -12,19 +15,9 @@ namespace MediaBrowser.Controller.Dlna
/// <value>The name.</value>
public string Name { get; set; }
- /// <summary>
- /// Gets or sets the transcoding profiles.
- /// </summary>
- /// <value>The transcoding profiles.</value>
- public TranscodingProfile[] TranscodingProfiles { get; set; }
-
- /// <summary>
- /// Gets or sets the direct play profiles.
- /// </summary>
- /// <value>The direct play profiles.</value>
- public DirectPlayProfile[] DirectPlayProfiles { get; set; }
-
- public ContainerProfile[] ContainerProfiles { get; set; }
+ [XmlIgnore]
+ [IgnoreDataMember]
+ public string Id { get; set; }
/// <summary>
/// Gets or sets the identification.
@@ -57,14 +50,27 @@ namespace MediaBrowser.Controller.Dlna
public string ProtocolInfo { get; set; }
- public MediaProfile[] MediaProfiles { get; set; }
- public CodecProfile[] CodecProfiles { get; set; }
-
public int TimelineOffsetSeconds { get; set; }
-
public bool RequiresPlainVideoItems { get; set; }
public bool RequiresPlainFolders { get; set; }
+ /// <summary>
+ /// Gets or sets the direct play profiles.
+ /// </summary>
+ /// <value>The direct play profiles.</value>
+ public DirectPlayProfile[] DirectPlayProfiles { get; set; }
+
+ /// <summary>
+ /// Gets or sets the transcoding profiles.
+ /// </summary>
+ /// <value>The transcoding profiles.</value>
+ public TranscodingProfile[] TranscodingProfiles { get; set; }
+
+ public ContainerProfile[] ContainerProfiles { get; set; }
+
+ public CodecProfile[] CodecProfiles { get; set; }
+ public MediaProfile[] MediaProfiles { get; set; }
+
public DeviceProfile()
{
DirectPlayProfiles = new DirectPlayProfile[] { };