From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Model/LiveTv/ProgramQuery.cs | 117 ++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 MediaBrowser.Model/LiveTv/ProgramQuery.cs (limited to 'MediaBrowser.Model/LiveTv/ProgramQuery.cs') diff --git a/MediaBrowser.Model/LiveTv/ProgramQuery.cs b/MediaBrowser.Model/LiveTv/ProgramQuery.cs new file mode 100644 index 000000000..89160948c --- /dev/null +++ b/MediaBrowser.Model/LiveTv/ProgramQuery.cs @@ -0,0 +1,117 @@ +using MediaBrowser.Model.Entities; +using System; +using MediaBrowser.Model.Querying; + +namespace MediaBrowser.Model.LiveTv +{ + /// + /// Class ProgramQuery. + /// + public class ProgramQuery + { + public ProgramQuery() + { + ChannelIds = new Guid[] { }; + OrderBy = new Tuple[] { }; + Genres = new string[] {}; + GenreIds = new Guid[] { }; + EnableTotalRecordCount = true; + EnableUserData = true; + } + + public bool EnableTotalRecordCount { get; set; } + public bool EnableUserData { get; set; } + + /// + /// Fields to return within the items, in addition to basic information + /// + /// The fields. + public ItemFields[] Fields { get; set; } + public bool? EnableImages { get; set; } + public int? ImageTypeLimit { get; set; } + public ImageType[] EnableImageTypes { get; set; } + + /// + /// Gets or sets the channel ids. + /// + /// The channel ids. + public Guid[] ChannelIds { get; set; } + + /// + /// Gets or sets the user identifier. + /// + /// The user identifier. + public string UserId { get; set; } + public string SeriesTimerId { get; set; } + public string Name { 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 news or not + /// + /// If set to null, all programs will be returned + public bool? IsNews { 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; } + + /// + /// Gets or sets a value indicating whether this instance is kids. + /// + /// null if [is kids] contains no value, true if [is kids]; otherwise, false. + public bool? IsKids { get; set; } + /// + /// Gets or sets a value indicating whether this instance is sports. + /// + /// null if [is sports] contains no value, true if [is sports]; otherwise, false. + public bool? IsSports { get; set; } + + /// + /// Skips over a given number of items within the results. Use for paging. + /// + public int? StartIndex { get; set; } + public bool? IsSeries { 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; } + + /// + /// The maximum number of items to return + /// + public int? Limit { get; set; } + + public Tuple[] OrderBy { get; set; } + + /// + /// Limit results to items containing specific genres + /// + /// The genres. + public Guid[] GenreIds { get; set; } + public string[] Genres { get; set; } + } +} \ No newline at end of file -- cgit v1.2.3