mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
07cc4be6a7
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
#pragma warning disable CS1591
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
|
{
|
|
public class ProfileCondition
|
|
{
|
|
[XmlAttribute("condition")]
|
|
public ProfileConditionType Condition { get; set; }
|
|
|
|
[XmlAttribute("property")]
|
|
public ProfileConditionValue Property { get; set; }
|
|
|
|
[XmlAttribute("value")]
|
|
public string Value { get; set; }
|
|
|
|
[XmlAttribute("isRequired")]
|
|
public bool IsRequired { get; set; }
|
|
|
|
public ProfileCondition()
|
|
{
|
|
IsRequired = true;
|
|
}
|
|
|
|
public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value)
|
|
: this(condition, property, value, false)
|
|
{
|
|
|
|
}
|
|
|
|
public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value, bool isRequired)
|
|
{
|
|
Condition = condition;
|
|
Property = property;
|
|
Value = value;
|
|
IsRequired = isRequired;
|
|
}
|
|
}
|
|
}
|