From 01e65c93eeeddff27fc2e0e4833678c5cc2829a0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 14 Dec 2013 20:17:57 -0500 Subject: updated live tv + nuget --- MediaBrowser.Controller/LiveTv/ILiveTvManager.cs | 56 ++++++++++++++++++---- MediaBrowser.Controller/LiveTv/ILiveTvService.cs | 11 ++++- .../LiveTv/ImageResponseInfo.cs | 6 --- MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs | 42 ++++++++++------ 4 files changed, 82 insertions(+), 33 deletions(-) (limited to 'MediaBrowser.Controller/LiveTv') diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs index b8dfbe05dd..9ed7b633d9 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Model.LiveTv; +using MediaBrowser.Controller.Entities; +using MediaBrowser.Model.LiveTv; using MediaBrowser.Model.Querying; using System.Collections.Generic; using System.Threading; @@ -54,17 +55,28 @@ namespace MediaBrowser.Controller.LiveTv /// Gets the channels. /// /// The query. + /// The cancellation token. /// IEnumerable{Channel}. - QueryResult GetChannels(ChannelQuery query); + Task> GetChannels(ChannelQuery query, CancellationToken cancellationToken); /// /// Gets the recording. /// /// The identifier. + /// The user. /// The cancellation token. /// Task{RecordingInfoDto}. - Task GetRecording(string id, CancellationToken cancellationToken); + Task GetRecording(string id, CancellationToken cancellationToken, User user = null); + /// + /// Gets the channel. + /// + /// The identifier. + /// The cancellation token. + /// The user. + /// Task{RecordingInfoDto}. + Task GetChannel(string id, CancellationToken cancellationToken, User user = null); + /// /// Gets the timer. /// @@ -73,6 +85,14 @@ namespace MediaBrowser.Controller.LiveTv /// Task{TimerInfoDto}. Task GetTimer(string id, CancellationToken cancellationToken); + /// + /// Gets the series timer. + /// + /// The identifier. + /// The cancellation token. + /// Task{TimerInfoDto}. + Task GetSeriesTimer(string id, CancellationToken cancellationToken); + /// /// Gets the recordings. /// @@ -90,19 +110,19 @@ namespace MediaBrowser.Controller.LiveTv Task> GetTimers(TimerQuery query, CancellationToken cancellationToken); /// - /// Gets the channel. + /// Gets the series timers. /// - /// The identifier. - /// Channel. - Channel GetChannel(string id); - + /// The query. + /// The cancellation token. + /// Task{QueryResult{SeriesTimerInfoDto}}. + Task> GetSeriesTimers(SeriesTimerQuery query, CancellationToken cancellationToken); + /// /// Gets the channel. /// /// The identifier. - /// The user identifier. /// Channel. - ChannelInfoDto GetChannelInfoDto(string id, string userId); + Channel GetChannel(string id); /// /// Gets the programs. @@ -111,5 +131,21 @@ namespace MediaBrowser.Controller.LiveTv /// The cancellation token. /// IEnumerable{ProgramInfo}. Task> GetPrograms(ProgramQuery query, CancellationToken cancellationToken); + + /// + /// Updates the timer. + /// + /// The timer. + /// The cancellation token. + /// Task. + Task UpdateTimer(TimerInfoDto timer, CancellationToken cancellationToken); + + /// + /// Updates the timer. + /// + /// The timer. + /// The cancellation token. + /// Task. + Task UpdateSeriesTimer(SeriesTimerInfoDto timer, CancellationToken cancellationToken); } } diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs index de75ee7528..8b1801f9e8 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs @@ -1,5 +1,4 @@ -using MediaBrowser.Common.Net; -using System.Collections.Generic; +using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -55,6 +54,14 @@ namespace MediaBrowser.Controller.LiveTv /// Task. Task CreateSeriesTimerAsync(SeriesTimerInfo info, CancellationToken cancellationToken); + /// + /// Updates the timer asynchronous. + /// + /// The information. + /// The cancellation token. + /// Task. + Task UpdateTimerAsync(TimerInfo info, CancellationToken cancellationToken); + /// /// Updates the series timer asynchronous. /// diff --git a/MediaBrowser.Controller/LiveTv/ImageResponseInfo.cs b/MediaBrowser.Controller/LiveTv/ImageResponseInfo.cs index 6b6123e540..d454a1ef8d 100644 --- a/MediaBrowser.Controller/LiveTv/ImageResponseInfo.cs +++ b/MediaBrowser.Controller/LiveTv/ImageResponseInfo.cs @@ -15,11 +15,5 @@ namespace MediaBrowser.Controller.LiveTv /// /// The type of the MIME. public string MimeType { get; set; } - - /// - /// Gets or sets the image path. - /// - /// The image path. - public string ImagePath { get; set; } } } diff --git a/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs b/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs index 44594882cd..6072827964 100644 --- a/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs +++ b/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs @@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.LiveTv /// ChannelId of the recording. /// public string ChannelId { get; set; } - + /// /// ChannelName of the recording. /// @@ -26,7 +26,7 @@ namespace MediaBrowser.Controller.LiveTv /// /// The program identifier. public string ProgramId { get; set; } - + /// /// Name of the recording. /// @@ -35,7 +35,7 @@ namespace MediaBrowser.Controller.LiveTv /// /// Description of the recording. /// - public string Description { get; set; } + public string Overview { get; set; } /// /// The start date of the recording, in UTC. @@ -47,18 +47,6 @@ namespace MediaBrowser.Controller.LiveTv /// public DateTime EndDate { get; set; } - /// - /// Gets or sets the pre padding seconds. - /// - /// The pre padding seconds. - public int PrePaddingSeconds { get; set; } - - /// - /// Gets or sets the post padding seconds. - /// - /// The post padding seconds. - public int PostPaddingSeconds { get; set; } - /// /// Gets or sets the type of the recurrence. /// @@ -77,6 +65,30 @@ namespace MediaBrowser.Controller.LiveTv /// The priority. public int Priority { get; set; } + /// + /// Gets or sets the requested pre padding seconds. + /// + /// The requested pre padding seconds. + public int RequestedPrePaddingSeconds { get; set; } + + /// + /// Gets or sets the requested post padding seconds. + /// + /// The requested post padding seconds. + public int RequestedPostPaddingSeconds { get; set; } + + /// + /// Gets or sets the required pre padding seconds. + /// + /// The required pre padding seconds. + public int RequiredPrePaddingSeconds { get; set; } + + /// + /// Gets or sets the required post padding seconds. + /// + /// The required post padding seconds. + public int RequiredPostPaddingSeconds { get; set; } + public SeriesTimerInfo() { Days = new List(); -- cgit v1.2.3