ProfileCondition.cs 893 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Xml.Serialization;
  2. namespace MediaBrowser.Model.Dlna
  3. {
  4. public class ProfileCondition
  5. {
  6. public ProfileConditionType Condition { get; set; }
  7. public ProfileConditionValue Property { get; set; }
  8. public string Value { get; set; }
  9. public bool IsRequired { get; set; }
  10. public ProfileCondition()
  11. {
  12. IsRequired = true;
  13. }
  14. public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value)
  15. : this(condition, property, value, false)
  16. {
  17. }
  18. public ProfileCondition(ProfileConditionType condition, ProfileConditionValue property, string value, bool isRequired)
  19. {
  20. Condition = condition;
  21. Property = property;
  22. Value = value;
  23. IsRequired = isRequired;
  24. }
  25. }
  26. }