From b1d2841583079cdfbb9c3c3c63a1f0a15d5259d3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 14 Mar 2015 16:00:32 -0400 Subject: add movie metadata support to live tv --- MediaBrowser.Model/LiveTv/ProgramQuery.cs | 71 +++++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Model/LiveTv/ProgramQuery.cs') diff --git a/MediaBrowser.Model/LiveTv/ProgramQuery.cs b/MediaBrowser.Model/LiveTv/ProgramQuery.cs index 2d15a4c4b..bbd396c33 100644 --- a/MediaBrowser.Model/LiveTv/ProgramQuery.cs +++ b/MediaBrowser.Model/LiveTv/ProgramQuery.cs @@ -1,4 +1,5 @@ -using System; +using MediaBrowser.Model.Entities; +using System; namespace MediaBrowser.Model.LiveTv { @@ -7,11 +8,18 @@ namespace MediaBrowser.Model.LiveTv /// public class ProgramQuery { + public ProgramQuery() + { + ChannelIds = new string[] { }; + SortBy = new string[] { }; + Genres = new string[] { }; + } + /// - /// Gets or sets the channel identifier. + /// Gets or sets the channel ids. /// - /// The channel identifier. - public string[] ChannelIdList { get; set; } + /// The channel ids. + public string[] ChannelIds { get; set; } /// /// Gets or sets the user identifier. @@ -19,19 +27,64 @@ namespace MediaBrowser.Model.LiveTv /// The user identifier. public string UserId { get; set; } + /// + /// The earliest date for which a program starts to return + /// public DateTime? MinStartDate { get; set; } + /// + /// The latest date for which a program starts to return + /// public DateTime? MaxStartDate { get; set; } + /// + /// The earliest date for which a program ends to return + /// public DateTime? MinEndDate { get; set; } + /// + /// The latest date for which a program ends to return + /// public DateTime? MaxEndDate { get; set; } + /// + /// Used to specific whether to return movies or not + /// + /// If set to null, all programs will be returned + public bool? IsMovie { get; set; } + + /// + /// Skips over a given number of items within the results. Use for paging. + /// + public int? StartIndex { get; set; } + + /// + /// Gets or sets a value indicating whether this instance has aired. + /// + /// null if [has aired] contains no value, true if [has aired]; otherwise, false. public bool? HasAired { get; set; } - public ProgramQuery() - { - ChannelIdList = new string[] { }; - } + /// + /// The maximum number of items to return + /// + public int? Limit { get; set; } + + /// + /// What to sort the results by + /// + /// The sort by. + public string[] SortBy { get; set; } + + /// + /// The sort order to return results with + /// + /// The sort order. + public SortOrder? SortOrder { get; set; } + + /// + /// Limit results to items containing specific genres + /// + /// The genres. + public string[] Genres { get; set; } } -} +} \ No newline at end of file -- cgit v1.2.3