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 --- .../Library/ILibrarySearchEngine.cs | 4 ++-- MediaBrowser.Controller/Library/SearchHintInfo.cs | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 MediaBrowser.Controller/Library/SearchHintInfo.cs (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/ILibrarySearchEngine.cs b/MediaBrowser.Controller/Library/ILibrarySearchEngine.cs index 315e75208..ff4dcbe5b 100644 --- a/MediaBrowser.Controller/Library/ILibrarySearchEngine.cs +++ b/MediaBrowser.Controller/Library/ILibrarySearchEngine.cs @@ -23,7 +23,7 @@ namespace MediaBrowser.Controller.Library /// /// The input items. /// The search term. - /// Task{IEnumerable{BaseItem}}. - Task> GetSearchHints(IEnumerable inputItems, string searchTerm); + /// Task{IEnumerable{SearchHintInfo}}. + Task> GetSearchHints(IEnumerable inputItems, string searchTerm); } } diff --git a/MediaBrowser.Controller/Library/SearchHintInfo.cs b/MediaBrowser.Controller/Library/SearchHintInfo.cs new file mode 100644 index 000000000..f832811c2 --- /dev/null +++ b/MediaBrowser.Controller/Library/SearchHintInfo.cs @@ -0,0 +1,22 @@ +using MediaBrowser.Controller.Entities; + +namespace MediaBrowser.Controller.Library +{ + /// + /// Class SearchHintInfo + /// + public class SearchHintInfo + { + /// + /// Gets or sets the item. + /// + /// The item. + public BaseItem Item { get; set; } + + /// + /// Gets or sets the matched term. + /// + /// The matched term. + public string MatchedTerm { get; set; } + } +} -- cgit v1.2.3