ILiveTvManager.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using MediaBrowser.Model.LiveTv;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.LiveTv
  4. {
  5. /// <summary>
  6. /// Manages all live tv services installed on the server
  7. /// </summary>
  8. public interface ILiveTvManager
  9. {
  10. /// <summary>
  11. /// Gets the services.
  12. /// </summary>
  13. /// <value>The services.</value>
  14. IReadOnlyList<ILiveTvService> Services { get; }
  15. /// <summary>
  16. /// Adds the parts.
  17. /// </summary>
  18. /// <param name="services">The services.</param>
  19. void AddParts(IEnumerable<ILiveTvService> services);
  20. /// <summary>
  21. /// Gets the channels.
  22. /// </summary>
  23. /// <param name="query">The query.</param>
  24. /// <returns>IEnumerable{Channel}.</returns>
  25. IEnumerable<Channel> GetChannels(ChannelQuery query);
  26. /// <summary>
  27. /// Gets the channel information dto.
  28. /// </summary>
  29. /// <param name="info">The information.</param>
  30. /// <returns>ChannelInfoDto.</returns>
  31. ChannelInfoDto GetChannelInfoDto(Channel info);
  32. /// <summary>
  33. /// Gets the channel.
  34. /// </summary>
  35. /// <param name="serviceName">Name of the service.</param>
  36. /// <param name="channelId">The channel identifier.</param>
  37. /// <returns>Channel.</returns>
  38. Channel GetChannel(string serviceName, string channelId);
  39. }
  40. }