diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-27 09:05:33 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-27 09:05:33 -0400 |
| commit | 0bfb755a3895d26144a69eb7f0ea02bba655a15f (patch) | |
| tree | bf8e606c5846e38c57aa320ac0e50a916b8ac19e /MediaBrowser.Controller/Library | |
| parent | 3eaf25132c65bf287f2206e85a8a1eaa5670ac15 (diff) | |
search hints progress
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILibrarySearchEngine.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Library/SearchHintInfo.cs | 22 |
2 files changed, 24 insertions, 2 deletions
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 /// </summary> /// <param name="inputItems">The input items.</param> /// <param name="searchTerm">The search term.</param> - /// <returns>Task{IEnumerable{BaseItem}}.</returns> - Task<IEnumerable<BaseItem>> GetSearchHints(IEnumerable<BaseItem> inputItems, string searchTerm); + /// <returns>Task{IEnumerable{SearchHintInfo}}.</returns> + Task<IEnumerable<SearchHintInfo>> GetSearchHints(IEnumerable<BaseItem> 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 +{ + /// <summary> + /// Class SearchHintInfo + /// </summary> + public class SearchHintInfo + { + /// <summary> + /// Gets or sets the item. + /// </summary> + /// <value>The item.</value> + public BaseItem Item { get; set; } + + /// <summary> + /// Gets or sets the matched term. + /// </summary> + /// <value>The matched term.</value> + public string MatchedTerm { get; set; } + } +} |
