InternalChannelFeatures.cs 2.1 KB

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