ChannelItemInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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<PersonInfo> People { get; set; }
  16. public float? CommunityRating { get; set; }
  17. public long? RunTimeTicks { get; set; }
  18. public bool IsInfiniteStream { get; set; }
  19. public string ImageUrl { get; set; }
  20. public ChannelMediaType MediaType { get; set; }
  21. public ChannelMediaContentType ContentType { get; set; }
  22. public Dictionary<string, string> ProviderIds { get; set; }
  23. public DateTime? PremiereDate { get; set; }
  24. public int? ProductionYear { get; set; }
  25. public ChannelItemInfo()
  26. {
  27. Genres = new List<string>();
  28. People = new List<PersonInfo>();
  29. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  30. }
  31. }
  32. public enum ChannelItemType
  33. {
  34. Media = 0,
  35. Category = 1
  36. }
  37. public enum ChannelMediaType
  38. {
  39. Audio = 0,
  40. Video = 1
  41. }
  42. public enum ChannelMediaContentType
  43. {
  44. Clip = 0,
  45. Podcast = 1,
  46. Trailer = 2,
  47. Movie = 3,
  48. Episode = 4
  49. }
  50. }