InternalChannelFeatures.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /// <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. public InternalChannelFeatures()
  36. {
  37. MediaTypes = new List<ChannelMediaType>();
  38. ContentTypes = new List<ChannelMediaContentType>();
  39. DefaultSortFields = new List<ChannelItemSortField>();
  40. }
  41. }
  42. }