jellyfin/MediaBrowser.Model/Dlna/ProfileCondition.cs

39 lines
1 KiB
C#
Raw Normal View History

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