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/Search/SearchHint.cs | 158 ++++++++++++++++++++++++++ MediaBrowser.Model/Search/SearchHintResult.cs | 21 ++++ MediaBrowser.Model/Search/SearchQuery.cs | 65 +++++++++++ 3 files changed, 244 insertions(+) create mode 100644 MediaBrowser.Model/Search/SearchHint.cs create mode 100644 MediaBrowser.Model/Search/SearchHintResult.cs create mode 100644 MediaBrowser.Model/Search/SearchQuery.cs (limited to 'MediaBrowser.Model/Search') diff --git a/MediaBrowser.Model/Search/SearchHint.cs b/MediaBrowser.Model/Search/SearchHint.cs new file mode 100644 index 0000000000..daa3566cfc --- /dev/null +++ b/MediaBrowser.Model/Search/SearchHint.cs @@ -0,0 +1,158 @@ +using System; + +namespace MediaBrowser.Model.Search +{ + /// + /// Class SearchHintResult + /// + public class SearchHint + { + /// + /// Gets or sets the item id. + /// + /// The item id. + public Guid ItemId { get; set; } + + public Guid Id { get; set; } + + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + + /// + /// Gets or sets the matched term. + /// + /// The matched term. + public string MatchedTerm { get; set; } + + /// + /// Gets or sets the index number. + /// + /// The index number. + public int? IndexNumber { get; set; } + + /// + /// Gets or sets the production year. + /// + /// The production year. + public int? ProductionYear { get; set; } + + /// + /// Gets or sets the parent index number. + /// + /// The parent index number. + public int? ParentIndexNumber { get; set; } + + /// + /// Gets or sets the image tag. + /// + /// The image tag. + public string PrimaryImageTag { get; set; } + + /// + /// Gets or sets the thumb image tag. + /// + /// The thumb image tag. + public string ThumbImageTag { get; set; } + + /// + /// Gets or sets the thumb image item identifier. + /// + /// The thumb image item identifier. + public string ThumbImageItemId { get; set; } + + /// + /// Gets or sets the backdrop image tag. + /// + /// The backdrop image tag. + public string BackdropImageTag { get; set; } + + /// + /// Gets or sets the backdrop image item identifier. + /// + /// The backdrop image item identifier. + public string BackdropImageItemId { get; set; } + + /// + /// Gets or sets the type. + /// + /// The type. + public string Type { get; set; } + + public bool? IsFolder { get; set; } + + /// + /// Gets or sets the run time ticks. + /// + /// The run time ticks. + public long? RunTimeTicks { get; set; } + + /// + /// Gets or sets the type of the media. + /// + /// The type of the media. + public string MediaType { get; set; } + + public DateTime? StartDate { get; set; } + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the series. + /// + /// The series. + public string Series { get; set; } + + public string Status { get; set; } + + /// + /// Gets or sets the album. + /// + /// The album. + public string Album { get; set; } + public Guid AlbumId { get; set; } + + /// + /// Gets or sets the album artist. + /// + /// The album artist. + public string AlbumArtist { get; set; } + + /// + /// Gets or sets the artists. + /// + /// The artists. + public string[] Artists { get; set; } + + /// + /// Gets or sets the song count. + /// + /// The song count. + public int? SongCount { get; set; } + + /// + /// Gets or sets the episode count. + /// + /// The episode count. + public int? EpisodeCount { get; set; } + + /// + /// Gets or sets the channel identifier. + /// + /// The channel identifier. + public Guid ChannelId { get; set; } + + /// + /// Gets or sets the name of the channel. + /// + /// The name of the channel. + public string ChannelName { get; set; } + + /// + /// Gets or sets the primary image aspect ratio. + /// + /// The primary image aspect ratio. + public double? PrimaryImageAspectRatio { get; set; } + } +} diff --git a/MediaBrowser.Model/Search/SearchHintResult.cs b/MediaBrowser.Model/Search/SearchHintResult.cs new file mode 100644 index 0000000000..372528f827 --- /dev/null +++ b/MediaBrowser.Model/Search/SearchHintResult.cs @@ -0,0 +1,21 @@ + +namespace MediaBrowser.Model.Search +{ + /// + /// Class SearchHintResult + /// + public class SearchHintResult + { + /// + /// Gets or sets the search hints. + /// + /// The search hints. + public SearchHint[] SearchHints { get; set; } + + /// + /// Gets or sets the total record count. + /// + /// The total record count. + public int TotalRecordCount { get; set; } + } +} diff --git a/MediaBrowser.Model/Search/SearchQuery.cs b/MediaBrowser.Model/Search/SearchQuery.cs new file mode 100644 index 0000000000..6a1861c8e7 --- /dev/null +++ b/MediaBrowser.Model/Search/SearchQuery.cs @@ -0,0 +1,65 @@ +using System; + +namespace MediaBrowser.Model.Search +{ + public class SearchQuery + { + /// + /// The user to localize search results for + /// + /// The user id. + public Guid 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 string[] MediaTypes { get; set; } + public string[] IncludeItemTypes { get; set; } + public string[] ExcludeItemTypes { get; set; } + public string ParentId { get; set; } + + public bool? IsMovie { get; set; } + + public bool? IsSeries { get; set; } + + public bool? IsNews { get; set; } + + public bool? IsKids { get; set; } + + public bool? IsSports { get; set; } + + public SearchQuery() + { + IncludeArtists = true; + IncludeGenres = true; + IncludeMedia = true; + IncludePeople = true; + IncludeStudios = true; + + MediaTypes = new string[] {}; + IncludeItemTypes = new string[] {}; + ExcludeItemTypes = new string[] {}; + } + } +} -- cgit v1.2.3