mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 13:23:03 +02:00
Remove Required attributes
This commit is contained in:
parent
9d3f614527
commit
1a178e8490
|
@ -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;
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ namespace MediaBrowser.Model.Dlna
|
|||
[XmlAttribute("videoCodec")]
|
||||
public string? VideoCodec { get; set; }
|
||||
|
||||
[Required]
|
||||
[XmlAttribute("type")]
|
||||
public DlnaProfileType Type { get; set; }
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue