aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/LiveTv/ProgramQuery.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-03-19 13:21:35 -0400
committerLuke <luke.pulverenti@gmail.com>2015-03-19 13:21:35 -0400
commit9926be0d9de688c04065c916e44ada4177b38a80 (patch)
tree15338144a143948ffbee316641757e81489a7354 /MediaBrowser.Model/LiveTv/ProgramQuery.cs
parentb756e677d733992c2033bdd369980a37e17609e4 (diff)
parent0564d454e5ad4f59702aa9022af6bb8fd064a9ff (diff)
Merge pull request #1043 from MediaBrowser/dev
3.0.5557.0
Diffstat (limited to 'MediaBrowser.Model/LiveTv/ProgramQuery.cs')
-rw-r--r--MediaBrowser.Model/LiveTv/ProgramQuery.cs75
1 files changed, 65 insertions, 10 deletions
diff --git a/MediaBrowser.Model/LiveTv/ProgramQuery.cs b/MediaBrowser.Model/LiveTv/ProgramQuery.cs
index 36c06d4c0..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
/// </summary>
public class ProgramQuery
{
+ public ProgramQuery()
+ {
+ ChannelIds = new string[] { };
+ SortBy = new string[] { };
+ Genres = new string[] { };
+ }
+
/// <summary>
- /// Gets or sets the channel identifier.
+ /// Gets or sets the channel ids.
/// </summary>
- /// <value>The channel identifier.</value>
- public string[] ChannelIdList { get; set; }
+ /// <value>The channel ids.</value>
+ public string[] ChannelIds { get; set; }
/// <summary>
/// Gets or sets the user identifier.
@@ -19,17 +27,64 @@ namespace MediaBrowser.Model.LiveTv
/// <value>The user identifier.</value>
public string UserId { get; set; }
+ /// <summary>
+ /// The earliest date for which a program starts to return
+ /// </summary>
public DateTime? MinStartDate { get; set; }
+ /// <summary>
+ /// The latest date for which a program starts to return
+ /// </summary>
public DateTime? MaxStartDate { get; set; }
+ /// <summary>
+ /// The earliest date for which a program ends to return
+ /// </summary>
public DateTime? MinEndDate { get; set; }
+ /// <summary>
+ /// The latest date for which a program ends to return
+ /// </summary>
public DateTime? MaxEndDate { get; set; }
-
- public ProgramQuery()
- {
- ChannelIdList = new string[] { };
- }
+
+ /// <summary>
+ /// Used to specific whether to return movies or not
+ /// </summary>
+ /// <remarks>If set to null, all programs will be returned</remarks>
+ public bool? IsMovie { get; set; }
+
+ /// <summary>
+ /// Skips over a given number of items within the results. Use for paging.
+ /// </summary>
+ public int? StartIndex { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance has aired.
+ /// </summary>
+ /// <value><c>null</c> if [has aired] contains no value, <c>true</c> if [has aired]; otherwise, <c>false</c>.</value>
+ public bool? HasAired { get; set; }
+
+ /// <summary>
+ /// The maximum number of items to return
+ /// </summary>
+ public int? Limit { get; set; }
+
+ /// <summary>
+ /// What to sort the results by
+ /// </summary>
+ /// <value>The sort by.</value>
+ public string[] SortBy { get; set; }
+
+ /// <summary>
+ /// The sort order to return results with
+ /// </summary>
+ /// <value>The sort order.</value>
+ public SortOrder? SortOrder { get; set; }
+
+ /// <summary>
+ /// Limit results to items containing specific genres
+ /// </summary>
+ /// <value>The genres.</value>
+ public string[] Genres { get; set; }
}
-}
+} \ No newline at end of file