2014-05-08 13:26:20 -07:00
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
|
|
|
|
{
|
|
|
|
|
public class ProfileCondition
|
|
|
|
|
{
|
2016-12-09 00:23:09 -07:00
|
|
|
|
[XmlAttribute("condition")]
|
2014-05-08 13:26:20 -07:00
|
|
|
|
public ProfileConditionType Condition { get; set; }
|
|
|
|
|
|
2016-12-09 00:23:09 -07:00
|
|
|
|
[XmlAttribute("property")]
|
2014-05-08 13:26:20 -07:00
|
|
|
|
public ProfileConditionValue Property { get; set; }
|
|
|
|
|
|
2016-12-09 00:23:09 -07:00
|
|
|
|
[XmlAttribute("value")]
|
2014-05-08 13:26:20 -07:00
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
2016-12-09 00:23:09 -07:00
|
|
|
|
[XmlAttribute("isRequired")]
|
2014-05-08 13:26:20 -07:00
|
|
|
|
public bool IsRequired { get; set; }
|
|
|
|
|
|
|
|
|
|
public ProfileCondition()
|
|
|
|
|
{
|
|
|
|
|
IsRequired = true;
|
|
|
|
|
}
|
2014-10-06 16:58:46 -07:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2014-05-08 13:26:20 -07:00
|
|
|
|
}
|
|
|
|
|
}
|