InternalChannelFeatures.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. public InternalChannelFeatures()
  42. {
  43. MediaTypes = new List<ChannelMediaType>();
  44. ContentTypes = new List<ChannelMediaContentType>();
  45. DefaultSortFields = new List<ChannelItemSortField>();
  46. }
  47. }
  48. public class ChannelDownloadException : Exception
  49. {
  50. public ChannelDownloadException(string message)
  51. : base(message)
  52. {
  53. }
  54. }
  55. }