2020-04-05 16:10:56 +00:00
|
|
|
#nullable disable
|
2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:02:23 +00:00
|
|
|
using System.Xml.Serialization;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
|
|
|
{
|
|
|
|
public class ProfileCondition
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
2020-04-05 16:10:56 +00:00
|
|
|
|
|
|
|
[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; }
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
2019-01-13 19:31:15 +00:00
|
|
|
}
|