From f20f3b4b68cc7309a7d0d62f6ebcb3db4482a9e1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 22 Dec 2013 12:16:24 -0500 Subject: live tv updates --- MediaBrowser.Controller/LiveTv/ChannelInfo.cs | 7 +++++++ MediaBrowser.Controller/LiveTv/ILiveTvManager.cs | 14 +++++++------- MediaBrowser.Controller/LiveTv/ILiveTvService.cs | 17 +++++++++++++++++ MediaBrowser.Controller/LiveTv/ProgramInfo.cs | 6 ++++++ MediaBrowser.Controller/LiveTv/RecordingInfo.cs | 13 +++++++++++++ 5 files changed, 50 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/LiveTv/ChannelInfo.cs b/MediaBrowser.Controller/LiveTv/ChannelInfo.cs index 9bc37fcc0b..cdc9c76c82 100644 --- a/MediaBrowser.Controller/LiveTv/ChannelInfo.cs +++ b/MediaBrowser.Controller/LiveTv/ChannelInfo.cs @@ -42,5 +42,12 @@ namespace MediaBrowser.Controller.LiveTv /// /// The image URL. public string ImageUrl { get; set; } + + /// + /// Gets or sets a value indicating whether this instance has image. + /// + /// null if [has image] contains no value, true if [has image]; otherwise, false. + public bool? HasImage { get; set; } + } } diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs index e7226e9b5a..40cc4bae5c 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs @@ -24,13 +24,6 @@ namespace MediaBrowser.Controller.LiveTv /// The services. IReadOnlyList Services { get; } - /// - /// Schedules the recording. - /// - /// The program identifier. - /// Task. - Task ScheduleRecording(string programId); - /// /// Gets the new timer defaults asynchronous. /// @@ -146,6 +139,13 @@ namespace MediaBrowser.Controller.LiveTv /// Channel. LiveTvChannel GetInternalChannel(string id); + /// + /// Gets the internal program. + /// + /// The identifier. + /// LiveTvProgram. + LiveTvProgram GetInternalProgram(string id); + /// /// Gets the recording. /// diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs index 1c88629f09..3a6cbf583c 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.IO; using System.Threading; using System.Threading.Tasks; @@ -138,5 +139,21 @@ namespace MediaBrowser.Controller.LiveTv /// The cancellation token. /// Task{IEnumerable{ProgramInfo}}. Task> GetProgramsAsync(string channelId, CancellationToken cancellationToken); + + /// + /// Gets the recording stream. + /// + /// The recording identifier. + /// The cancellation token. + /// Task{Stream}. + Task GetRecordingStream(string recordingId, CancellationToken cancellationToken); + + /// + /// Gets the channel stream. + /// + /// The recording identifier. + /// The cancellation token. + /// Task{Stream}. + Task GetChannelStream(string recordingId, CancellationToken cancellationToken); } } diff --git a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs index e1382657d7..671c4b5914 100644 --- a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs +++ b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs @@ -157,6 +157,12 @@ namespace MediaBrowser.Controller.LiveTv /// true if this instance is premiere; otherwise, false. public bool IsPremiere { get; set; } + /// + /// Gets or sets a value indicating whether this instance has image. + /// + /// null if [has image] contains no value, true if [has image]; otherwise, false. + public bool? HasImage { get; set; } + public ProgramInfo() { Genres = new List(); diff --git a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs index afdcec1f9c..2004536af4 100644 --- a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs +++ b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs @@ -11,6 +11,12 @@ namespace MediaBrowser.Controller.LiveTv /// public string Id { get; set; } + /// + /// Gets or sets the series timer identifier. + /// + /// The series timer identifier. + public string SeriesTimerId { get; set; } + /// /// ChannelId of the recording. /// @@ -167,6 +173,13 @@ namespace MediaBrowser.Controller.LiveTv /// The image URL. public string ImageUrl { get; set; } + /// + /// Gets or sets a value indicating whether this instance has image. + /// + /// null if [has image] contains no value, true if [has image]; otherwise, false. + public bool? HasImage { get; set; } + + public RecordingInfo() { Genres = new List(); -- cgit v1.2.3