2
0

InternalChannelFeatures.cs 2.1 KB

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