2
0

InternalChannelFeatures.cs 2.1 KB

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