ContainerProfile.cs 720 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Xml.Serialization;
  3. namespace MediaBrowser.Model.Dlna
  4. {
  5. public class ContainerProfile
  6. {
  7. public DlnaProfileType Type { get; set; }
  8. public ProfileCondition[] Conditions { get; set; }
  9. public string Container { get; set; }
  10. public ContainerProfile()
  11. {
  12. Conditions = new ProfileCondition[] { };
  13. }
  14. public List<string> GetContainers()
  15. {
  16. List<string> list = new List<string>();
  17. foreach (string i in (Container ?? string.Empty).Split(','))
  18. {
  19. if (!string.IsNullOrEmpty(i)) list.Add(i);
  20. }
  21. return list;
  22. }
  23. }
  24. }