ChannelItemInfo.cs 1.7 KB

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