ChannelItemInfo.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. }