aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2021-05-04 19:11:01 -0600
committercrobibero <cody@robibe.ro>2021-05-04 19:11:01 -0600
commit1a178e84905c776766c49551f52dc163b93c81b0 (patch)
tree10b1147ca661c98c224e67f6fe33ebbcbc36c432
parent9d3f61452707f2ffd894c2a77d901a7b82c0c6f5 (diff)
Remove Required attributes
-rw-r--r--MediaBrowser.Model/Dlna/ContainerProfile.cs2
-rw-r--r--MediaBrowser.Model/Dlna/DirectPlayProfile.cs1
-rw-r--r--MediaBrowser.Model/Dlna/TranscodingProfile.cs5
3 files changed, 0 insertions, 8 deletions
diff --git a/MediaBrowser.Model/Dlna/ContainerProfile.cs b/MediaBrowser.Model/Dlna/ContainerProfile.cs
index 54d4f7f38..c66ec8bc3 100644
--- a/MediaBrowser.Model/Dlna/ContainerProfile.cs
+++ b/MediaBrowser.Model/Dlna/ContainerProfile.cs
@@ -9,13 +9,11 @@ namespace MediaBrowser.Model.Dlna
{
public class ContainerProfile
{
- [Required]
[XmlAttribute("type")]
public DlnaProfileType Type { get; set; }
public ProfileCondition[]? Conditions { get; set; } = Array.Empty<ProfileCondition>();
- [Required]
[XmlAttribute("container")]
public string Container { get; set; } = string.Empty;
diff --git a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs
index 7b8cbe181..fa3ad098f 100644
--- a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs
+++ b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs
@@ -16,7 +16,6 @@ namespace MediaBrowser.Model.Dlna
[XmlAttribute("videoCodec")]
public string? VideoCodec { get; set; }
- [Required]
[XmlAttribute("type")]
public DlnaProfileType Type { get; set; }
diff --git a/MediaBrowser.Model/Dlna/TranscodingProfile.cs b/MediaBrowser.Model/Dlna/TranscodingProfile.cs
index ea446b733..214578a85 100644
--- a/MediaBrowser.Model/Dlna/TranscodingProfile.cs
+++ b/MediaBrowser.Model/Dlna/TranscodingProfile.cs
@@ -8,23 +8,18 @@ namespace MediaBrowser.Model.Dlna
{
public class TranscodingProfile
{
- [Required]
[XmlAttribute("container")]
public string Container { get; set; } = string.Empty;
- [Required]
[XmlAttribute("type")]
public DlnaProfileType Type { get; set; }
- [Required]
[XmlAttribute("videoCodec")]
public string VideoCodec { get; set; } = string.Empty;
- [Required]
[XmlAttribute("audioCodec")]
public string AudioCodec { get; set; } = string.Empty;
- [Required]
[XmlAttribute("protocol")]
public string Protocol { get; set; } = string.Empty;