ChannelItemInfo.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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<PersonInfo> People { get; set; }
  17. public float? CommunityRating { get; set; }
  18. public long? RunTimeTicks { get; set; }
  19. public bool IsInfiniteStream { get; set; }
  20. public string ImageUrl { get; set; }
  21. public ChannelMediaType MediaType { get; set; }
  22. public ChannelMediaContentType ContentType { get; set; }
  23. public Dictionary<string, string> ProviderIds { get; set; }
  24. public DateTime? PremiereDate { get; set; }
  25. public int? ProductionYear { get; set; }
  26. public DateTime? DateCreated { get; set; }
  27. public List<ChannelMediaInfo> MediaSources { get; set; }
  28. public ChannelItemInfo()
  29. {
  30. MediaSources = new List<ChannelMediaInfo>();
  31. Genres = new List<string>();
  32. Studios = new List<string>();
  33. People = new List<PersonInfo>();
  34. ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
  35. }
  36. }
  37. public enum ChannelItemType
  38. {
  39. Media = 0,
  40. Category = 1
  41. }
  42. public enum ChannelMediaType
  43. {
  44. Audio = 0,
  45. Video = 1
  46. }
  47. public enum ChannelMediaContentType
  48. {
  49. Clip = 0,
  50. Podcast = 1,
  51. Trailer = 2,
  52. Movie = 3,
  53. Episode = 4,
  54. Song = 5
  55. }
  56. public class ChannelMediaInfo
  57. {
  58. public string Path { get; set; }
  59. public Dictionary<string, string> RequiredHttpHeaders { get; set; }
  60. public string Container { get; set; }
  61. public string AudioCodec { get; set; }
  62. public string VideoCodec { get; set; }
  63. public int? AudioBitrate { get; set; }
  64. public int? VideoBitrate { get; set; }
  65. public int? Width { get; set; }
  66. public int? Height { get; set; }
  67. public int? AudioChannels { get; set; }
  68. public ChannelMediaInfo()
  69. {
  70. RequiredHttpHeaders = new Dictionary<string, string>();
  71. }
  72. }
  73. }