ChannelItemInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Model.Entities;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MediaBrowser.Controller.Channels
  6. {
  7. public class ChannelItemInfo : IHasProviderIds
  8. {
  9. public string Name { get; set; }
  10. public string Id { get; set; }
  11. public ChannelItemType Type { get; set; }
  12. public string OfficialRating { get; set; }
  13. public string Overview { get; set; }
  14. public List<string> Genres { get; set; }
  15. public List<string> Studios { get; set; }
  16. public List<string> Tags { get; set; }
  17. public List<PersonInfo> People { get; set; }
  18. public float? CommunityRating { get; set; }
  19. public long? RunTimeTicks { get; set; }
  20. public bool IsInfiniteStream { get; set; }
  21. public string ImageUrl { get; set; }
  22. public ChannelMediaType MediaType { get; set; }
  23. public ChannelMediaContentType ContentType { get; set; }
  24. public Dictionary<string, string> ProviderIds { get; set; }
  25. public DateTime? PremiereDate { get; set; }
  26. public int? ProductionYear { get; set; }
  27. public DateTime? DateCreated { get; set; }
  28. public List<ChannelMediaInfo> MediaSources { get; set; }
  29. public ChannelItemInfo()
  30. {
  31. MediaSources = new List<ChannelMediaInfo>();
  32. Genres = new List<string>();
  33. Studios = new List<string>();
  34. People = new List<PersonInfo>();
  35. Tags = new List<string>();
  36. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  37. }
  38. }
  39. }