2016-03-02 13:42:39 -05:00
|
|
|
|
using System;
|
2015-04-12 14:58:21 -04:00
|
|
|
|
using MediaBrowser.Controller.Dto;
|
2014-10-15 00:11:40 -04:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
using MediaBrowser.Model.Dto;
|
2015-08-21 15:25:35 -04:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2013-12-14 20:17:57 -05:00
|
|
|
|
using MediaBrowser.Model.LiveTv;
|
2013-11-25 15:39:23 -05:00
|
|
|
|
using MediaBrowser.Model.Querying;
|
2013-09-26 11:48:14 -04:00
|
|
|
|
using System.Collections.Generic;
|
2013-11-26 21:38:11 -05:00
|
|
|
|
using System.Threading;
|
2013-11-26 16:36:11 -05:00
|
|
|
|
using System.Threading.Tasks;
|
2016-06-08 02:21:13 -04:00
|
|
|
|
using MediaBrowser.Model.Events;
|
2016-10-05 03:15:29 -04:00
|
|
|
|
using MediaBrowser.Controller.Library;
|
2013-09-26 11:48:14 -04:00
|
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
|
2013-12-17 15:02:12 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the new timer defaults asynchronous.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{TimerInfo}.</returns>
|
2013-12-18 00:44:46 -05:00
|
|
|
|
Task<SeriesTimerInfoDto> GetNewTimerDefaults(CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the new timer defaults.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="programId">The program identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{SeriesTimerInfoDto}.</returns>
|
|
|
|
|
|
Task<SeriesTimerInfoDto> GetNewTimerDefaults(string programId, CancellationToken cancellationToken);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2013-11-29 11:58:24 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Deletes the recording.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task DeleteRecording(string id);
|
|
|
|
|
|
|
2016-02-11 23:54:00 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Deletes the recording.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="recording">The recording.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
2016-03-19 17:34:43 -04:00
|
|
|
|
Task DeleteRecording(BaseItem recording);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2013-11-29 11:58:24 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Cancels the timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task CancelTimer(string id);
|
2013-12-04 15:55:42 -05:00
|
|
|
|
|
2013-12-15 09:19:24 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Cancels the series timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task CancelSeriesTimer(string id);
|
2015-07-23 09:23:22 -04:00
|
|
|
|
|
2013-09-26 11:48:14 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Adds the parts.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="services">The services.</param>
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <param name="tunerHosts">The tuner hosts.</param>
|
|
|
|
|
|
/// <param name="listingProviders">The listing providers.</param>
|
|
|
|
|
|
void AddParts(IEnumerable<ILiveTvService> services, IEnumerable<ITunerHost> tunerHosts, IEnumerable<IListingsProvider> listingProviders);
|
2013-09-26 11:48:14 -04:00
|
|
|
|
|
2013-12-03 23:18:50 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recording.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
2015-04-12 14:58:21 -04:00
|
|
|
|
/// <param name="options">The options.</param>
|
2013-12-03 23:18:50 -05:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2015-04-12 14:58:21 -04:00
|
|
|
|
/// <param name="user">The user.</param>
|
2013-12-03 23:18:50 -05:00
|
|
|
|
/// <returns>Task{RecordingInfoDto}.</returns>
|
2015-05-31 14:22:51 -04:00
|
|
|
|
Task<BaseItemDto> GetRecording(string id, DtoOptions options, CancellationToken cancellationToken, User user = null);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2013-12-03 23:18:50 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{TimerInfoDto}.</returns>
|
|
|
|
|
|
Task<TimerInfoDto> GetTimer(string id, CancellationToken cancellationToken);
|
|
|
|
|
|
|
2013-12-14 20:17:57 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the series timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{TimerInfoDto}.</returns>
|
|
|
|
|
|
Task<SeriesTimerInfoDto> GetSeriesTimer(string id, CancellationToken cancellationToken);
|
2015-04-12 14:58:21 -04:00
|
|
|
|
|
2013-11-24 15:51:45 -05:00
|
|
|
|
/// <summary>
|
2013-11-25 21:53:48 -05:00
|
|
|
|
/// Gets the recordings.
|
2013-11-24 15:51:45 -05:00
|
|
|
|
/// </summary>
|
2013-11-26 16:36:11 -05:00
|
|
|
|
/// <param name="query">The query.</param>
|
2015-04-12 14:58:21 -04:00
|
|
|
|
/// <param name="options">The options.</param>
|
2013-11-26 16:36:11 -05:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2013-11-25 21:53:48 -05:00
|
|
|
|
/// <returns>QueryResult{RecordingInfoDto}.</returns>
|
2015-05-31 14:22:51 -04:00
|
|
|
|
Task<QueryResult<BaseItemDto>> GetRecordings(RecordingQuery query, DtoOptions options, CancellationToken cancellationToken);
|
2017-08-27 20:33:05 -04:00
|
|
|
|
QueryResult<BaseItemDto> GetRecordingSeries(RecordingQuery query, DtoOptions options, CancellationToken cancellationToken);
|
2013-11-24 15:51:45 -05:00
|
|
|
|
|
2013-11-27 14:04:19 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the timers.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{QueryResult{TimerInfoDto}}.</returns>
|
|
|
|
|
|
Task<QueryResult<TimerInfoDto>> GetTimers(TimerQuery query, CancellationToken cancellationToken);
|
2013-12-04 15:55:42 -05:00
|
|
|
|
|
2013-11-24 15:51:45 -05:00
|
|
|
|
/// <summary>
|
2013-12-14 20:17:57 -05:00
|
|
|
|
/// Gets the series timers.
|
2013-11-24 15:51:45 -05:00
|
|
|
|
/// </summary>
|
2013-12-14 20:17:57 -05:00
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{QueryResult{SeriesTimerInfoDto}}.</returns>
|
|
|
|
|
|
Task<QueryResult<SeriesTimerInfoDto>> GetSeriesTimers(SeriesTimerQuery query, CancellationToken cancellationToken);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2013-11-25 21:53:48 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the channel.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <returns>Channel.</returns>
|
2013-12-19 16:51:32 -05:00
|
|
|
|
LiveTvChannel GetInternalChannel(string id);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2013-12-19 16:51:32 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recording.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>LiveTvRecording.</returns>
|
2016-03-19 17:34:43 -04:00
|
|
|
|
Task<BaseItem> GetInternalRecording(string id, CancellationToken cancellationToken);
|
2013-12-22 13:58:51 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recording stream.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{Stream}.</returns>
|
2015-03-20 01:40:51 -04:00
|
|
|
|
Task<MediaSourceInfo> GetRecordingStream(string id, CancellationToken cancellationToken);
|
2013-12-29 13:53:56 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the channel stream.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
2015-05-15 22:36:47 -04:00
|
|
|
|
/// <param name="mediaSourceId">The media source identifier.</param>
|
2013-12-29 13:53:56 -05:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{StreamResponseInfo}.</returns>
|
2017-03-29 15:16:43 -04:00
|
|
|
|
Task<Tuple<MediaSourceInfo, IDirectStreamProvider>> GetChannelStream(string id, string mediaSourceId, CancellationToken cancellationToken);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2013-12-17 15:02:12 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the program.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
|
/// <returns>Task{ProgramInfoDto}.</returns>
|
2015-05-31 15:12:58 -04:00
|
|
|
|
Task<BaseItemDto> GetProgram(string id, CancellationToken cancellationToken, User user = null);
|
2015-08-02 13:02:23 -04:00
|
|
|
|
|
2013-11-25 11:15:31 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the programs.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="query">The query.</param>
|
2015-08-02 13:02:23 -04:00
|
|
|
|
/// <param name="options">The options.</param>
|
2013-11-26 16:36:11 -05:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2013-11-25 11:15:31 -05:00
|
|
|
|
/// <returns>IEnumerable{ProgramInfo}.</returns>
|
2015-08-02 13:02:23 -04:00
|
|
|
|
Task<QueryResult<BaseItemDto>> GetPrograms(ProgramQuery query, DtoOptions options, CancellationToken cancellationToken);
|
2013-12-14 20:17:57 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Updates the timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timer">The timer.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task UpdateTimer(TimerInfoDto timer, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Updates the timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timer">The timer.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task UpdateSeriesTimer(SeriesTimerInfoDto timer, CancellationToken cancellationToken);
|
2013-12-17 15:02:12 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates the timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timer">The timer.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task CreateTimer(TimerInfoDto timer, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates the series timer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="timer">The timer.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task CreateSeriesTimer(SeriesTimerInfoDto timer, CancellationToken cancellationToken);
|
2013-12-28 16:37:01 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recording groups.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{QueryResult{RecordingGroupDto}}.</returns>
|
2015-05-31 14:22:51 -04:00
|
|
|
|
Task<QueryResult<BaseItemDto>> GetRecordingGroups(RecordingGroupQuery query, CancellationToken cancellationToken);
|
2014-01-05 01:50:48 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Closes the live stream.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
2016-09-29 08:55:49 -04:00
|
|
|
|
Task CloseLiveStream(string id);
|
2014-01-07 13:39:35 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the guide information.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>GuideInfo.</returns>
|
|
|
|
|
|
GuideInfo GetGuideInfo();
|
2014-01-12 10:58:47 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recommended programs.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="query">The query.</param>
|
2015-08-02 13:02:23 -04:00
|
|
|
|
/// <param name="options">The options.</param>
|
2014-01-12 10:58:47 -05:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{QueryResult{ProgramInfoDto}}.</returns>
|
2015-08-02 13:02:23 -04:00
|
|
|
|
Task<QueryResult<BaseItemDto>> GetRecommendedPrograms(RecommendedProgramQuery query, DtoOptions options, CancellationToken cancellationToken);
|
2014-01-23 17:15:15 -05:00
|
|
|
|
|
2014-09-01 16:10:54 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recommended programs internal.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>Task<QueryResult<LiveTvProgram>>.</returns>
|
2017-08-19 15:43:35 -04:00
|
|
|
|
Task<QueryResult<BaseItem>> GetRecommendedProgramsInternal(RecommendedProgramQuery query, DtoOptions options, CancellationToken cancellationToken);
|
2014-09-01 16:10:54 -04:00
|
|
|
|
|
2014-01-23 17:15:15 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the live tv information.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task{LiveTvInfo}.</returns>
|
|
|
|
|
|
Task<LiveTvInfo> GetLiveTvInfo(CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Resets the tuner.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
|
Task ResetTuner(string id, CancellationToken cancellationToken);
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the live tv folder.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>BaseItemDto.</returns>
|
2015-08-14 15:14:54 -04:00
|
|
|
|
Task<Folder> GetInternalLiveTvFolder(CancellationToken cancellationToken);
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the live tv folder.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="userId">The user identifier.</param>
|
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
|
/// <returns>BaseItemDto.</returns>
|
|
|
|
|
|
Task<BaseItemDto> GetLiveTvFolder(string userId, CancellationToken cancellationToken);
|
2014-06-10 13:36:06 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the enabled users.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>IEnumerable{User}.</returns>
|
|
|
|
|
|
IEnumerable<User> GetEnabledUsers();
|
2014-08-14 09:24:30 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the internal channels.
|
|
|
|
|
|
/// </summary>
|
2017-08-09 15:56:38 -04:00
|
|
|
|
Task<QueryResult<BaseItem>> GetInternalChannels(LiveTvChannelQuery query, DtoOptions dtoOptions, CancellationToken cancellationToken);
|
2014-08-14 09:24:30 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the internal recordings.
|
|
|
|
|
|
/// </summary>
|
2017-05-21 03:25:49 -04:00
|
|
|
|
Task<QueryResult<BaseItem>> GetInternalRecordings(RecordingQuery query, DtoOptions options, CancellationToken cancellationToken);
|
2015-03-29 00:56:39 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the recording media sources.
|
|
|
|
|
|
/// </summary>
|
2016-10-09 03:18:43 -04:00
|
|
|
|
Task<IEnumerable<MediaSourceInfo>> GetRecordingMediaSources(IHasMediaSources item, CancellationToken cancellationToken);
|
2015-03-29 00:56:39 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the channel media sources.
|
|
|
|
|
|
/// </summary>
|
2016-10-09 03:18:43 -04:00
|
|
|
|
Task<IEnumerable<MediaSourceInfo>> GetChannelMediaSources(IHasMediaSources item, CancellationToken cancellationToken);
|
2015-05-31 14:22:51 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Adds the information to recording dto.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
|
/// <param name="dto">The dto.</param>
|
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
|
void AddInfoToRecordingDto(BaseItem item, BaseItemDto dto, User user = null);
|
2015-05-31 15:12:58 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Adds the information to program dto.
|
|
|
|
|
|
/// </summary>
|
2016-03-02 13:42:39 -05:00
|
|
|
|
/// <param name="programs">The programs.</param>
|
2016-02-12 13:29:28 -05:00
|
|
|
|
/// <param name="fields">The fields.</param>
|
2015-05-31 15:12:58 -04:00
|
|
|
|
/// <param name="user">The user.</param>
|
2016-03-02 13:42:39 -05:00
|
|
|
|
/// <returns>Task.</returns>
|
2017-08-19 15:43:35 -04:00
|
|
|
|
Task AddInfoToProgramDto(List<Tuple<BaseItem, BaseItemDto>> programs, ItemFields[] fields, User user = null);
|
2016-09-25 14:39:13 -04:00
|
|
|
|
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Saves the tuner host.
|
|
|
|
|
|
/// </summary>
|
2016-08-26 15:29:28 -04:00
|
|
|
|
Task<TunerHostInfo> SaveTunerHost(TunerHostInfo info, bool dataSourceChanged = true);
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Saves the listing provider.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="info">The information.</param>
|
2015-07-25 13:21:10 -04:00
|
|
|
|
/// <param name="validateLogin">if set to <c>true</c> [validate login].</param>
|
|
|
|
|
|
/// <param name="validateListings">if set to <c>true</c> [validate listings].</param>
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <returns>Task.</returns>
|
2015-07-25 13:21:10 -04:00
|
|
|
|
Task<ListingsProviderInfo> SaveListingProvider(ListingsProviderInfo info, bool validateLogin, bool validateListings);
|
2016-06-30 15:01:48 -04:00
|
|
|
|
|
|
|
|
|
|
void DeleteListingsProvider(string id);
|
|
|
|
|
|
|
|
|
|
|
|
Task<TunerChannelMapping> SetChannelMapping(string providerId, string tunerChannelNumber, string providerChannelNumber);
|
|
|
|
|
|
|
2017-08-19 15:43:35 -04:00
|
|
|
|
TunerChannelMapping GetTunerChannelMapping(ChannelInfo channel, NameValuePair[] mappings, List<ChannelInfo> providerChannels);
|
2016-06-30 15:01:48 -04:00
|
|
|
|
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the lineups.
|
|
|
|
|
|
/// </summary>
|
2015-08-10 15:09:10 -04:00
|
|
|
|
/// <param name="providerType">Type of the provider.</param>
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <param name="providerId">The provider identifier.</param>
|
2015-07-23 13:58:20 -04:00
|
|
|
|
/// <param name="country">The country.</param>
|
2015-07-23 09:23:22 -04:00
|
|
|
|
/// <param name="location">The location.</param>
|
|
|
|
|
|
/// <returns>Task<List<NameIdPair>>.</returns>
|
2015-08-10 15:09:10 -04:00
|
|
|
|
Task<List<NameIdPair>> GetLineups(string providerType, string providerId, string country, string location);
|
2015-08-21 15:25:35 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the registration information.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="feature">The feature.</param>
|
|
|
|
|
|
/// <returns>Task<MBRegistrationRecord>.</returns>
|
2016-09-06 01:02:05 -04:00
|
|
|
|
Task<MBRegistrationRecord> GetRegistrationInfo(string feature);
|
2015-08-31 00:57:12 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Adds the channel information.
|
|
|
|
|
|
/// </summary>
|
2016-03-22 02:49:36 -04:00
|
|
|
|
/// <param name="items">The items.</param>
|
2015-08-31 00:57:12 -04:00
|
|
|
|
/// <param name="options">The options.</param>
|
|
|
|
|
|
/// <param name="user">The user.</param>
|
2017-08-27 20:33:05 -04:00
|
|
|
|
void AddChannelInfo(List<Tuple<BaseItemDto, LiveTvChannel>> items, DtoOptions options, User user);
|
2016-03-07 21:59:21 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Called when [recording file deleted].
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="recording">The recording.</param>
|
|
|
|
|
|
/// <returns>Task.</returns>
|
2016-03-19 17:34:43 -04:00
|
|
|
|
Task OnRecordingFileDeleted(BaseItem recording);
|
2016-03-17 14:19:39 -04:00
|
|
|
|
|
2016-06-09 12:13:25 -04:00
|
|
|
|
Task<List<ChannelInfo>> GetChannelsForListingsProvider(string id, CancellationToken cancellationToken);
|
|
|
|
|
|
Task<List<ChannelInfo>> GetChannelsFromListingsProviderData(string id, CancellationToken cancellationToken);
|
2016-06-08 02:21:13 -04:00
|
|
|
|
|
2016-09-25 14:39:13 -04:00
|
|
|
|
List<IListingsProvider> ListingProviders { get; }
|
2016-06-10 12:45:04 -04:00
|
|
|
|
|
2017-03-13 14:57:45 -04:00
|
|
|
|
List<NameIdPair> GetTunerHostTypes();
|
2017-03-15 15:57:18 -04:00
|
|
|
|
Task<List<TunerHostInfo>> DiscoverTuners(bool newDevicesOnly, CancellationToken cancellationToken);
|
2017-03-13 14:57:45 -04:00
|
|
|
|
|
2016-06-08 02:21:13 -04:00
|
|
|
|
event EventHandler<GenericEventArgs<TimerEventInfo>> SeriesTimerCancelled;
|
|
|
|
|
|
event EventHandler<GenericEventArgs<TimerEventInfo>> TimerCancelled;
|
|
|
|
|
|
event EventHandler<GenericEventArgs<TimerEventInfo>> TimerCreated;
|
|
|
|
|
|
event EventHandler<GenericEventArgs<TimerEventInfo>> SeriesTimerCreated;
|
2016-10-31 23:07:45 -04:00
|
|
|
|
|
|
|
|
|
|
string GetEmbyTvActiveRecordingPath(string id);
|
2017-09-28 13:04:06 -04:00
|
|
|
|
Task<ILiveStream> GetEmbyTvLiveStream(string id);
|
2017-08-23 15:45:52 -04:00
|
|
|
|
|
|
|
|
|
|
ActiveRecordingInfo GetActiveRecordingInfo(string path);
|
|
|
|
|
|
|
|
|
|
|
|
void AddInfoToRecordingDto(BaseItem item, BaseItemDto dto, ActiveRecordingInfo activeRecordingInfo, User user = null);
|
2013-09-26 11:48:14 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|