From ccd51222e65cbc6faa409e4269bc5795bfd0f0ae Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 1 Dec 2013 01:25:19 -0500 Subject: updated live tv endpoints --- MediaBrowser.Controller/LiveTv/ILiveTvService.cs | 22 ++++++- .../LiveTv/RecurringTimerInfo.cs | 73 ---------------------- MediaBrowser.Controller/LiveTv/TimerInfo.cs | 6 +- .../MediaBrowser.Controller.csproj | 2 +- 4 files changed, 23 insertions(+), 80 deletions(-) delete mode 100644 MediaBrowser.Controller/LiveTv/RecurringTimerInfo.cs (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs index 2b58d8bc5..1627ad400 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs @@ -47,6 +47,22 @@ namespace MediaBrowser.Controller.LiveTv /// Task. Task CreateTimerAsync(TimerInfo info, CancellationToken cancellationToken); + /// + /// Creates the series timer asynchronous. + /// + /// The information. + /// The cancellation token. + /// Task. + Task CreateSeriesTimerAsync(SeriesTimerInfo info, CancellationToken cancellationToken); + + /// + /// Updates the series timer asynchronous. + /// + /// The information. + /// The cancellation token. + /// Task. + Task UpdateSeriesTimerAsync(SeriesTimerInfo info, CancellationToken cancellationToken); + /// /// Gets the channel image asynchronous. /// @@ -70,11 +86,11 @@ namespace MediaBrowser.Controller.LiveTv Task> GetTimersAsync(CancellationToken cancellationToken); /// - /// Gets the recurring timers asynchronous. + /// Gets the series timers asynchronous. /// /// The cancellation token. - /// Task{IEnumerable{RecurringTimerInfo}}. - Task> GetRecurringTimersAsync(CancellationToken cancellationToken); + /// Task{IEnumerable{SeriesTimerInfo}}. + Task> GetSeriesTimersAsync(CancellationToken cancellationToken); /// /// Gets the programs asynchronous. diff --git a/MediaBrowser.Controller/LiveTv/RecurringTimerInfo.cs b/MediaBrowser.Controller/LiveTv/RecurringTimerInfo.cs deleted file mode 100644 index 08a8b1f92..000000000 --- a/MediaBrowser.Controller/LiveTv/RecurringTimerInfo.cs +++ /dev/null @@ -1,73 +0,0 @@ -using MediaBrowser.Model.LiveTv; -using System; - -namespace MediaBrowser.Controller.LiveTv -{ - public class RecurringTimerInfo - { - /// - /// Id of the recording. - /// - public string Id { get; set; } - - /// - /// ChannelId of the recording. - /// - public string ChannelId { get; set; } - - /// - /// ChannelName of the recording. - /// - public string ChannelName { get; set; } - - /// - /// Gets or sets the program identifier. - /// - /// The program identifier. - public string ProgramId { get; set; } - - /// - /// Name of the recording. - /// - public string Name { get; set; } - - /// - /// Description of the recording. - /// - public string Description { get; set; } - - /// - /// The start date of the recording, in UTC. - /// - public DateTime StartDate { get; set; } - - /// - /// The end date of the recording, in UTC. - /// - public DateTime EndDate { get; set; } - - /// - /// Gets or sets the status. - /// - /// The status. - public RecordingStatus Status { 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. - /// - /// The type of the recurrence. - public RecurrenceType RecurrenceType { get; set; } - } -} diff --git a/MediaBrowser.Controller/LiveTv/TimerInfo.cs b/MediaBrowser.Controller/LiveTv/TimerInfo.cs index 0fe7c34f2..3df0b8cca 100644 --- a/MediaBrowser.Controller/LiveTv/TimerInfo.cs +++ b/MediaBrowser.Controller/LiveTv/TimerInfo.cs @@ -11,10 +11,10 @@ namespace MediaBrowser.Controller.LiveTv public string Id { get; set; } /// - /// Gets or sets the recurring timer identifier. + /// Gets or sets the series timer identifier. /// - /// The recurring timer identifier. - public string RecurringTimerId { get; set; } + /// The series timer identifier. + public string SeriesTimerId { get; set; } /// /// ChannelId of the recording. diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index ec0439c2c..a309d815c 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -110,7 +110,7 @@ - + -- cgit v1.2.3