ContainerProfile.cs 584 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace MediaBrowser.Controller.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. return (Container ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
  17. }
  18. }
  19. }