2014-05-08 20:26:20 +00:00
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Dlna
|
|
|
|
|
{
|
|
|
|
|
public class ProfileCondition
|
|
|
|
|
{
|
|
|
|
|
public ProfileConditionType Condition { get; set; }
|
|
|
|
|
|
|
|
|
|
public ProfileConditionValue Property { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsRequired { get; set; }
|
|
|
|
|
|
|
|
|
|
public ProfileCondition()
|
|
|
|
|
{
|
|
|
|
|
IsRequired = true;
|
|
|
|
|
}
|
2014-10-06 23:58:46 +00: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 20:26:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|