2020-02-03 17:49:27 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 13:02:23 -07:00
|
|
|
using System.Xml.Serialization;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
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)
|
|
|
|
{
|
2019-01-07 16:27:46 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value, bool isRequired)
|
|
|
|
{
|
|
|
|
Condition = condition;
|
|
|
|
Property = property;
|
|
|
|
Value = value;
|
|
|
|
IsRequired = isRequired;
|
|
|
|
}
|
|
|
|
}
|
2019-01-13 12:31:15 -07:00
|
|
|
}
|