2016-10-29 22:22:20 +00:00
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
|
|
2016-10-29 22:34:54 +00:00
|
|
|
|
namespace Emby.Dlna.ProfileSerialization
|
2016-10-29 22:22:20 +00:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|