From 650dc0ccac5bbb372f644d6c383fbc88af4f4e7b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 7 Jan 2014 15:12:39 -0500 Subject: added new search params --- MediaBrowser.Model/Search/SearchQuery.cs | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 MediaBrowser.Model/Search/SearchQuery.cs (limited to 'MediaBrowser.Model/Search/SearchQuery.cs') diff --git a/MediaBrowser.Model/Search/SearchQuery.cs b/MediaBrowser.Model/Search/SearchQuery.cs new file mode 100644 index 000000000..87ff7af66 --- /dev/null +++ b/MediaBrowser.Model/Search/SearchQuery.cs @@ -0,0 +1,45 @@ + +namespace MediaBrowser.Model.Search +{ + public class SearchQuery + { + /// + /// The user to localize search results for + /// + /// The user id. + public string UserId { get; set; } + + /// + /// Gets or sets the search term. + /// + /// The search term. + public string SearchTerm { get; set; } + + /// + /// Skips over a given number of items within the results. Use for paging. + /// + /// The start index. + public int? StartIndex { get; set; } + + /// + /// The maximum number of items to return + /// + /// The limit. + public int? Limit { get; set; } + + public bool IncludePeople { get; set; } + public bool IncludeMedia { get; set; } + public bool IncludeGenres { get; set; } + public bool IncludeStudios { get; set; } + public bool IncludeArtists { get; set; } + + public SearchQuery() + { + IncludeArtists = true; + IncludeGenres = true; + IncludeMedia = true; + IncludePeople = true; + IncludeStudios = true; + } + } +} -- cgit v1.2.3