ILiveTvManager.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using MediaBrowser.Model.LiveTv;
  2. using MediaBrowser.Model.Querying;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.LiveTv
  5. {
  6. /// <summary>
  7. /// Manages all live tv services installed on the server
  8. /// </summary>
  9. public interface ILiveTvManager
  10. {
  11. /// <summary>
  12. /// Gets the services.
  13. /// </summary>
  14. /// <value>The services.</value>
  15. IReadOnlyList<ILiveTvService> Services { get; }
  16. /// <summary>
  17. /// Adds the parts.
  18. /// </summary>
  19. /// <param name="services">The services.</param>
  20. void AddParts(IEnumerable<ILiveTvService> services);
  21. /// <summary>
  22. /// Gets the channels.
  23. /// </summary>
  24. /// <param name="query">The query.</param>
  25. /// <returns>IEnumerable{Channel}.</returns>
  26. QueryResult<ChannelInfoDto> GetChannels(ChannelQuery query);
  27. /// <summary>
  28. /// Gets the recordings.
  29. /// </summary>
  30. /// <returns>QueryResult{RecordingInfoDto}.</returns>
  31. QueryResult<RecordingInfoDto> GetRecordings();
  32. /// <summary>
  33. /// Gets the channel.
  34. /// </summary>
  35. /// <param name="id">The identifier.</param>
  36. /// <returns>Channel.</returns>
  37. Channel GetChannel(string id);
  38. /// <summary>
  39. /// Gets the channel.
  40. /// </summary>
  41. /// <param name="id">The identifier.</param>
  42. /// <param name="userId">The user identifier.</param>
  43. /// <returns>Channel.</returns>
  44. ChannelInfoDto GetChannelInfoDto(string id, string userId);
  45. /// <summary>
  46. /// Gets the programs.
  47. /// </summary>
  48. /// <param name="query">The query.</param>
  49. /// <returns>IEnumerable{ProgramInfo}.</returns>
  50. QueryResult<ProgramInfoDto> GetPrograms(ProgramQuery query);
  51. }
  52. }