diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-04-27 12:24:31 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-04-27 12:24:31 -0400 |
| commit | e0e2614543f87bd40a071d3e64cd1a7d61bc106b (patch) | |
| tree | 8e8b23a01e8ca29baaa82d25e72fa13eaa13b0d8 /MediaBrowser.Controller/Library | |
| parent | 6e7684ae0167efed8d3f64a9a49e6d1cc27abee8 (diff) | |
| parent | 46cf7d93e9727f6cf9b1b1d229804a89fdb6b74c (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
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; } + } +} |
