1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using MediaBrowser.Model.LiveTv;
- using MediaBrowser.Model.Querying;
- using System.Collections.Generic;
- namespace MediaBrowser.Controller.LiveTv
- {
- /// <summary>
- /// Manages all live tv services installed on the server
- /// </summary>
- public interface ILiveTvManager
- {
- /// <summary>
- /// Gets the services.
- /// </summary>
- /// <value>The services.</value>
- IReadOnlyList<ILiveTvService> Services { get; }
- /// <summary>
- /// Adds the parts.
- /// </summary>
- /// <param name="services">The services.</param>
- void AddParts(IEnumerable<ILiveTvService> services);
- /// <summary>
- /// Gets the channels.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <returns>IEnumerable{Channel}.</returns>
- QueryResult<ChannelInfoDto> GetChannels(ChannelQuery query);
- /// <summary>
- /// Gets the recordings.
- /// </summary>
- /// <returns>QueryResult{RecordingInfoDto}.</returns>
- QueryResult<RecordingInfoDto> GetRecordings();
- /// <summary>
- /// Gets the channel.
- /// </summary>
- /// <param name="id">The identifier.</param>
- /// <returns>Channel.</returns>
- Channel GetChannel(string id);
- /// <summary>
- /// Gets the channel.
- /// </summary>
- /// <param name="id">The identifier.</param>
- /// <param name="userId">The user identifier.</param>
- /// <returns>Channel.</returns>
- ChannelInfoDto GetChannelInfoDto(string id, string userId);
- /// <summary>
- /// Gets the programs.
- /// </summary>
- /// <param name="query">The query.</param>
- /// <returns>IEnumerable{ProgramInfo}.</returns>
- QueryResult<ProgramInfoDto> GetPrograms(ProgramQuery query);
- }
- }
|