| | | 1 | | #nullable disable |
| | | 2 | | #pragma warning disable CS1591 |
| | | 3 | | |
| | | 4 | | using System.Xml.Serialization; |
| | | 5 | | |
| | | 6 | | namespace MediaBrowser.Model.Dlna |
| | | 7 | | { |
| | | 8 | | public class ProfileCondition |
| | | 9 | | { |
| | | 10 | | public ProfileCondition() |
| | | 11 | | { |
| | 2911 | 12 | | IsRequired = true; |
| | 2911 | 13 | | } |
| | | 14 | | |
| | | 15 | | public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value) |
| | 0 | 16 | | : this(condition, property, value, false) |
| | | 17 | | { |
| | 0 | 18 | | } |
| | | 19 | | |
| | | 20 | | public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value, bool isReq |
| | | 21 | | { |
| | 0 | 22 | | Condition = condition; |
| | 0 | 23 | | Property = property; |
| | 0 | 24 | | Value = value; |
| | 0 | 25 | | IsRequired = isRequired; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | [XmlAttribute("condition")] |
| | | 29 | | public ProfileConditionType Condition { get; set; } |
| | | 30 | | |
| | | 31 | | [XmlAttribute("property")] |
| | | 32 | | public ProfileConditionValue Property { get; set; } |
| | | 33 | | |
| | | 34 | | [XmlAttribute("value")] |
| | | 35 | | public string Value { get; set; } |
| | | 36 | | |
| | | 37 | | [XmlAttribute("isRequired")] |
| | | 38 | | public bool IsRequired { get; set; } |
| | | 39 | | } |
| | | 40 | | } |