From e1e5d354345008e8d4ddc2dbbb99a68df4133280 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 18 Dec 2013 00:44:46 -0500 Subject: live tv updates --- MediaBrowser.Controller/LiveTv/ILiveTvManager.cs | 10 ++++++++- MediaBrowser.Controller/LiveTv/ILiveTvService.cs | 9 ++++---- MediaBrowser.Controller/LiveTv/ProgramInfo.cs | 18 ++++++++++++++++ MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs | 24 ++++++++++----------- MediaBrowser.Controller/LiveTv/TimerInfo.cs | 26 +++++++++++------------ 5 files changed, 57 insertions(+), 30 deletions(-) (limited to 'MediaBrowser.Controller/LiveTv') diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs index 10dfc08430..8e711d28c9 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs @@ -36,7 +36,15 @@ namespace MediaBrowser.Controller.LiveTv /// /// The cancellation token. /// Task{TimerInfo}. - Task GetNewTimerDefaults(CancellationToken cancellationToken); + Task GetNewTimerDefaults(CancellationToken cancellationToken); + + /// + /// Gets the new timer defaults. + /// + /// The program identifier. + /// The cancellation token. + /// Task{SeriesTimerInfoDto}. + Task GetNewTimerDefaults(string programId, CancellationToken cancellationToken); /// /// Deletes the recording. diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs index b88cadf238..2cd768a937 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs @@ -89,18 +89,19 @@ namespace MediaBrowser.Controller.LiveTv /// /// Gets the recording image asynchronous. /// - /// The channel identifier. + /// The recording identifier. /// The cancellation token. /// Task{ImageResponseInfo}. - Task GetRecordingImageAsync(string channelId, CancellationToken cancellationToken); + Task GetRecordingImageAsync(string recordingId, CancellationToken cancellationToken); /// /// Gets the program image asynchronous. /// + /// The program identifier. /// The channel identifier. /// The cancellation token. /// Task{ImageResponseInfo}. - Task GetProgramImageAsync(string channelId, CancellationToken cancellationToken); + Task GetProgramImageAsync(string programId, string channelId, CancellationToken cancellationToken); /// /// Gets the recordings asynchronous. @@ -121,7 +122,7 @@ namespace MediaBrowser.Controller.LiveTv /// /// The cancellation token. /// Task{TimerInfo}. - Task GetNewTimerDefaultsAsync(CancellationToken cancellationToken); + Task GetNewTimerDefaultsAsync(CancellationToken cancellationToken); /// /// Gets the series timers asynchronous. diff --git a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs index 5cf8fb721d..15b55f50eb 100644 --- a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs +++ b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs @@ -102,6 +102,24 @@ namespace MediaBrowser.Controller.LiveTv /// Leave it null if the only way to determine is by requesting the image and handling the failure. /// public bool? HasImage { get; set; } + + /// + /// Gets or sets a value indicating whether this instance is movie. + /// + /// true if this instance is movie; otherwise, false. + public bool IsMovie { get; set; } + + /// + /// Gets or sets a value indicating whether this instance is sports. + /// + /// true if this instance is sports; otherwise, false. + public bool IsSports { get; set; } + + /// + /// Gets or sets a value indicating whether this instance is series. + /// + /// true if this instance is series; otherwise, false. + public bool IsSeries { get; set; } public ProgramInfo() { diff --git a/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs b/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs index b92ec4a430..6801cd7f9e 100644 --- a/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs +++ b/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs @@ -78,28 +78,28 @@ namespace MediaBrowser.Controller.LiveTv public int Priority { get; set; } /// - /// Gets or sets the requested pre padding seconds. + /// Gets or sets the pre padding seconds. /// - /// The requested pre padding seconds. - public int RequestedPrePaddingSeconds { get; set; } + /// The pre padding seconds. + public int PrePaddingSeconds { get; set; } /// - /// Gets or sets the requested post padding seconds. + /// Gets or sets the post padding seconds. /// - /// The requested post padding seconds. - public int RequestedPostPaddingSeconds { get; set; } + /// The post padding seconds. + public int PostPaddingSeconds { get; set; } /// - /// Gets or sets the required pre padding seconds. + /// Gets or sets a value indicating whether this instance is pre padding required. /// - /// The required pre padding seconds. - public int RequiredPrePaddingSeconds { get; set; } + /// true if this instance is pre padding required; otherwise, false. + public bool IsPrePaddingRequired { get; set; } /// - /// Gets or sets the required post padding seconds. + /// Gets or sets a value indicating whether this instance is post padding required. /// - /// The required post padding seconds. - public int RequiredPostPaddingSeconds { get; set; } + /// true if this instance is post padding required; otherwise, false. + public bool IsPostPaddingRequired { get; set; } public SeriesTimerInfo() { diff --git a/MediaBrowser.Controller/LiveTv/TimerInfo.cs b/MediaBrowser.Controller/LiveTv/TimerInfo.cs index d5928959b7..499b217b5e 100644 --- a/MediaBrowser.Controller/LiveTv/TimerInfo.cs +++ b/MediaBrowser.Controller/LiveTv/TimerInfo.cs @@ -59,29 +59,29 @@ namespace MediaBrowser.Controller.LiveTv public RecordingStatus Status { get; set; } /// - /// Gets or sets the requested pre padding seconds. + /// Gets or sets the pre padding seconds. /// - /// The requested pre padding seconds. - public int RequestedPrePaddingSeconds { get; set; } + /// The pre padding seconds. + public int PrePaddingSeconds { get; set; } /// - /// Gets or sets the requested post padding seconds. + /// Gets or sets the post padding seconds. /// - /// The requested post padding seconds. - public int RequestedPostPaddingSeconds { get; set; } + /// The post padding seconds. + public int PostPaddingSeconds { get; set; } /// - /// Gets or sets the required pre padding seconds. + /// Gets or sets a value indicating whether this instance is pre padding required. /// - /// The required pre padding seconds. - public int RequiredPrePaddingSeconds { get; set; } + /// true if this instance is pre padding required; otherwise, false. + public bool IsPrePaddingRequired { get; set; } /// - /// Gets or sets the required post padding seconds. + /// Gets or sets a value indicating whether this instance is post padding required. /// - /// The required post padding seconds. - public int RequiredPostPaddingSeconds { get; set; } - + /// true if this instance is post padding required; otherwise, false. + public bool IsPostPaddingRequired { get; set; } + /// /// Gets or sets the priority. /// -- cgit v1.2.3