Stub out new filtering api

This commit is contained in:
Luke Pulverenti
2017-12-03 17:15:21 -05:00
parent 8717f81bf4
commit 175c085d90
6 changed files with 151 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ namespace MediaBrowser.Model.LiveTv
ChannelIds = new string[] { };
OrderBy = new Tuple<string, SortOrder>[] { };
Genres = new string[] { };
GenreIds = new string[] { };
EnableTotalRecordCount = true;
EnableUserData = true;
}
@@ -110,6 +111,7 @@ namespace MediaBrowser.Model.LiveTv
/// Limit results to items containing specific genres
/// </summary>
/// <value>The genres.</value>
public string[] GenreIds { get; set; }
public string[] Genres { get; set; }
}
}

View File

@@ -1,14 +1,15 @@

using MediaBrowser.Model.Dto;
namespace MediaBrowser.Model.Querying
{
public class QueryFilters
public class QueryFiltersLegacy
{
public string[] Genres { get; set; }
public string[] Tags { get; set; }
public string[] OfficialRatings { get; set; }
public int[] Years { get; set; }
public QueryFilters()
public QueryFiltersLegacy()
{
Genres = new string[] { };
Tags = new string[] { };
@@ -16,4 +17,15 @@ namespace MediaBrowser.Model.Querying
Years = new int[] { };
}
}
public class QueryFilters
{
public NameIdPair[] Genres { get; set; }
public string[] Tags { get; set; }
public QueryFilters()
{
Tags = new string[] { };
Genres = new NameIdPair[] { };
}
}
}