InternalChannelFeatures.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Collections.Generic;
  2. using MediaBrowser.Model.Channels;
  3. namespace MediaBrowser.Controller.Channels
  4. {
  5. public class InternalChannelFeatures
  6. {
  7. /// <summary>
  8. /// Gets or sets the media types.
  9. /// </summary>
  10. /// <value>The media types.</value>
  11. public List<ChannelMediaType> MediaTypes { get; set; }
  12. /// <summary>
  13. /// Gets or sets the content types.
  14. /// </summary>
  15. /// <value>The content types.</value>
  16. public List<ChannelMediaContentType> ContentTypes { get; set; }
  17. /// <summary>
  18. /// Represents the maximum number of records the channel allows retrieving at a time
  19. /// </summary>
  20. public int? MaxPageSize { get; set; }
  21. /// <summary>
  22. /// Gets or sets the default sort orders.
  23. /// </summary>
  24. /// <value>The default sort orders.</value>
  25. public List<ChannelItemSortField> DefaultSortFields { get; set; }
  26. /// <summary>
  27. /// Indicates if a sort ascending/descending toggle is supported or not.
  28. /// </summary>
  29. public bool SupportsSortOrderToggle { get; set; }
  30. /// <summary>
  31. /// Gets or sets the automatic refresh levels.
  32. /// </summary>
  33. /// <value>The automatic refresh levels.</value>
  34. public int? AutoRefreshLevels { get; set; }
  35. /// <summary>
  36. /// Gets or sets the daily download limit.
  37. /// </summary>
  38. /// <value>The daily download limit.</value>
  39. public int? DailyDownloadLimit { get; set; }
  40. /// <summary>
  41. /// Gets or sets a value indicating whether [supports downloading].
  42. /// </summary>
  43. /// <value><c>true</c> if [supports downloading]; otherwise, <c>false</c>.</value>
  44. public bool SupportsContentDownloading { get; set; }
  45. public InternalChannelFeatures()
  46. {
  47. MediaTypes = new List<ChannelMediaType>();
  48. ContentTypes = new List<ChannelMediaContentType>();
  49. DefaultSortFields = new List<ChannelItemSortField>();
  50. }
  51. }
  52. }