From 81e59040d004cf75c254481fb023495347906330 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 4 Dec 2013 15:55:42 -0500 Subject: updated live tv models --- MediaBrowser.Controller/LiveTv/ILiveTvManager.cs | 10 ++++++++-- MediaBrowser.Controller/LiveTv/ProgramInfo.cs | 21 +++++++++++---------- MediaBrowser.Controller/LiveTv/RecordingInfo.cs | 19 ++++++++++++++++--- MediaBrowser.Controller/LiveTv/TimerInfo.cs | 24 ++++++++++++++++++------ 4 files changed, 53 insertions(+), 21 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs index 4e73fc109f..b8dfbe05dd 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs @@ -11,6 +11,12 @@ namespace MediaBrowser.Controller.LiveTv /// public interface ILiveTvManager { + /// + /// Gets the active service. + /// + /// The active service. + ILiveTvService ActiveService { get; } + /// /// Gets the services. /// @@ -37,7 +43,7 @@ namespace MediaBrowser.Controller.LiveTv /// The identifier. /// Task. Task CancelTimer(string id); - + /// /// Adds the parts. /// @@ -82,7 +88,7 @@ namespace MediaBrowser.Controller.LiveTv /// The cancellation token. /// Task{QueryResult{TimerInfoDto}}. Task> GetTimers(TimerQuery query, CancellationToken cancellationToken); - + /// /// Gets the channel. /// diff --git a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs index cf5cdb94c9..8059c1100b 100644 --- a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs +++ b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs @@ -27,11 +27,12 @@ namespace MediaBrowser.Controller.LiveTv /// /// The official rating. public string OfficialRating { get; set; } - + /// - /// Description of the progam. + /// Gets or sets the overview. /// - public string Description { get; set; } + /// The overview. + public string Overview { get; set; } /// /// The start date of the program, in UTC. @@ -54,23 +55,23 @@ namespace MediaBrowser.Controller.LiveTv /// public List Genres { get; set; } - /// - /// Gets or sets the quality. - /// - /// The quality. - public ProgramVideoQuality Quality { get; set; } - /// /// Gets or sets the original air date. /// /// The original air date. public DateTime? OriginalAirDate { get; set; } + /// + /// Gets or sets a value indicating whether this instance is hd. + /// + /// true if this instance is hd; otherwise, false. + public bool? IsHD { get; set; } + /// /// Gets or sets the audio. /// /// The audio. - public ProgramAudio Audio { get; set; } + public ProgramAudio? Audio { get; set; } /// /// Gets or sets the community rating. diff --git a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs index 2c8e8cb464..1ffbb7e237 100644 --- a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs +++ b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs @@ -37,11 +37,12 @@ namespace MediaBrowser.Controller.LiveTv /// /// The path. public string Path { get; set; } - + /// - /// Description of the recording. + /// Gets or sets the overview. /// - public string Description { get; set; } + /// The overview. + public string Overview { get; set; } /// /// The start date of the recording, in UTC. @@ -82,6 +83,18 @@ namespace MediaBrowser.Controller.LiveTv /// The episode title. public string EpisodeTitle { get; set; } + /// + /// Gets or sets a value indicating whether this instance is hd. + /// + /// true if this instance is hd; otherwise, false. + public bool? IsHD { get; set; } + + /// + /// Gets or sets the audio. + /// + /// The audio. + public ProgramAudio? Audio { get; set; } + /// /// Gets or sets the official rating. /// diff --git a/MediaBrowser.Controller/LiveTv/TimerInfo.cs b/MediaBrowser.Controller/LiveTv/TimerInfo.cs index 3df0b8ccab..26e5869cea 100644 --- a/MediaBrowser.Controller/LiveTv/TimerInfo.cs +++ b/MediaBrowser.Controller/LiveTv/TimerInfo.cs @@ -59,15 +59,27 @@ namespace MediaBrowser.Controller.LiveTv public RecordingStatus Status { get; set; } /// - /// Gets or sets the pre padding seconds. + /// Gets or sets the requested pre padding seconds. /// - /// The pre padding seconds. - public int PrePaddingSeconds { get; set; } + /// The requested pre padding seconds. + public int RequestedPrePaddingSeconds { get; set; } /// - /// Gets or sets the post padding seconds. + /// Gets or sets the requested post padding seconds. /// - /// The post padding seconds. - public int PostPaddingSeconds { get; set; } + /// 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; } } } -- cgit v1.2.3