From 0bfb755a3895d26144a69eb7f0ea02bba655a15f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 27 Apr 2013 09:05:33 -0400 Subject: search hints progress --- MediaBrowser.Model/Search/SearchHint.cs | 106 ++++++++++++++++++++++++++ MediaBrowser.Model/Search/SearchHintResult.cs | 69 ++--------------- 2 files changed, 113 insertions(+), 62 deletions(-) create mode 100644 MediaBrowser.Model/Search/SearchHint.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..1e16b04921 --- /dev/null +++ b/MediaBrowser.Model/Search/SearchHint.cs @@ -0,0 +1,106 @@ +using System; + +namespace MediaBrowser.Model.Search +{ + /// + /// Class SearchHintResult + /// + public class SearchHint + { + /// + /// Gets or sets the item id. + /// + /// The item id. + public string ItemId { 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 parent index number. + /// + /// The parent index number. + public int? ParentIndexNumber { get; set; } + + /// + /// Gets or sets the image tag. + /// + /// The image tag. + public Guid? PrimaryImageTag { get; set; } + + /// + /// Gets or sets the type. + /// + /// The type. + public string Type { 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; } + + /// + /// Gets or sets the display type of the media. + /// + /// The display type of the media. + public string DisplayMediaType { get; set; } + + /// + /// Gets or sets the series. + /// + /// The series. + public string Series { get; set; } + + /// + /// Gets or sets the album. + /// + /// The album. + public string Album { 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; } + } +} diff --git a/MediaBrowser.Model/Search/SearchHintResult.cs b/MediaBrowser.Model/Search/SearchHintResult.cs index 2142ac3f7d..372528f827 100644 --- a/MediaBrowser.Model/Search/SearchHintResult.cs +++ b/MediaBrowser.Model/Search/SearchHintResult.cs @@ -1,5 +1,4 @@ -using System; - + namespace MediaBrowser.Model.Search { /// @@ -8,69 +7,15 @@ namespace MediaBrowser.Model.Search public class SearchHintResult { /// - /// Gets or sets the item id. - /// - /// The item id. - public string ItemId { get; set; } - - /// - /// Gets or sets the name. - /// - /// The name. - public string Name { get; set; } - - /// - /// Gets or sets the index number. - /// - /// The index number. - public int? IndexNumber { 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 Guid? PrimaryImageTag { get; set; } - - /// - /// Gets or sets the type. - /// - /// The type. - public string Type { get; set; } - - /// - /// Gets or sets the type of the media. - /// - /// The type of the media. - public string MediaType { get; set; } - - /// - /// Gets or sets the series. - /// - /// The series. - public string Series { get; set; } - - /// - /// Gets or sets the album. - /// - /// The album. - public string Album { get; set; } - - /// - /// Gets or sets the album artist. + /// Gets or sets the search hints. /// - /// The album artist. - public string AlbumArtist { get; set; } + /// The search hints. + public SearchHint[] SearchHints { get; set; } /// - /// Gets or sets the artists. + /// Gets or sets the total record count. /// - /// The artists. - public string[] Artists { get; set; } + /// The total record count. + public int TotalRecordCount { get; set; } } } -- cgit v1.2.3