From 6a9ed5f87f2d9ec0e07d860d36666f0fea2e1e45 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 25 Nov 2013 21:53:48 -0500 Subject: added recording status enum --- MediaBrowser.Controller/LiveTv/ILiveTvManager.cs | 15 ++++++++++---- MediaBrowser.Controller/LiveTv/ProgramInfo.cs | 25 ++++++++++++++++++++++++ MediaBrowser.Controller/LiveTv/RecordingInfo.cs | 8 +++++--- 3 files changed, 41 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs index e7b5d733b..9e4981331 100644 --- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs +++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs @@ -29,11 +29,10 @@ namespace MediaBrowser.Controller.LiveTv QueryResult GetChannels(ChannelQuery query); /// - /// Gets the channel information dto. + /// Gets the recordings. /// - /// The information. - /// ChannelInfoDto. - ChannelInfoDto GetChannelInfoDto(Channel info); + /// QueryResult{RecordingInfoDto}. + QueryResult GetRecordings(); /// /// Gets the channel. @@ -42,6 +41,14 @@ namespace MediaBrowser.Controller.LiveTv /// Channel. Channel GetChannel(string id); + /// + /// Gets the channel. + /// + /// The identifier. + /// The user identifier. + /// Channel. + ChannelInfoDto GetChannelInfoDto(string id, string userId); + /// /// Gets the programs. /// diff --git a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs index 8314b9170..2231b4eaa 100644 --- a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs +++ b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using MediaBrowser.Model.LiveTv; namespace MediaBrowser.Controller.LiveTv { @@ -21,6 +22,12 @@ namespace MediaBrowser.Controller.LiveTv /// public string Name { get; set; } + /// + /// Gets or sets the official rating. + /// + /// The official rating. + public string OfficialRating { get; set; } + /// /// Description of the progam. /// @@ -41,6 +48,24 @@ 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 the audio. + /// + /// The audio. + public ProgramAudio Audio { get; set; } + public ProgramInfo() { Genres = new List(); diff --git a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs index 0e4be52e3..f61bd9e78 100644 --- a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs +++ b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs @@ -1,4 +1,5 @@ -using System; +using MediaBrowser.Model.LiveTv; +using System; using System.Collections.Generic; namespace MediaBrowser.Controller.LiveTv @@ -47,9 +48,10 @@ namespace MediaBrowser.Controller.LiveTv public DateTime EndDate { get; set; } /// - /// Status of the recording. + /// Gets or sets the status. /// - public string Status { get; set; } //TODO: Enum for status?? Difference NextPvr,Argus,... + /// The status. + public RecordingStatus Status { get; set; } /// /// Gets or sets a value indicating whether this instance is recurring. -- cgit v1.2.3