InternalChannelFeatures.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using MediaBrowser.Model.Channels;
  2. using System.Collections.Generic;
  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. public InternalChannelFeatures()
  31. {
  32. MediaTypes = new List<ChannelMediaType>();
  33. ContentTypes = new List<ChannelMediaContentType>();
  34. DefaultSortFields = new List<ChannelItemSortField>();
  35. }
  36. }
  37. }