jellyfin/MediaBrowser.Controller/Library/ILibrarySearchEngine.cs

30 lines
1.1 KiB
C#
Raw Normal View History

2013-03-28 15:00:58 -07:00
using MediaBrowser.Controller.Entities;
using System.Collections.Generic;
2013-04-26 12:20:53 -07:00
using System.Threading.Tasks;
2013-03-28 15:00:58 -07:00
namespace MediaBrowser.Controller.Library
{
/// <summary>
/// Interface ILibrarySearchEngine
/// </summary>
public interface ILibrarySearchEngine
{
/// <summary>
2013-03-28 15:08:04 -07:00
/// Searches items and returns them in order of relevance.
2013-03-28 15:00:58 -07:00
/// </summary>
/// <param name="items">The items.</param>
/// <param name="searchTerm">The search term.</param>
/// <returns>IEnumerable{BaseItem}.</returns>
2013-03-28 15:08:04 -07:00
/// <exception cref="System.ArgumentNullException">searchTerm</exception>
2013-03-28 15:00:58 -07:00
IEnumerable<BaseItem> Search(IEnumerable<BaseItem> items, string searchTerm);
2013-04-26 12:20:53 -07:00
/// <summary>
/// Gets the search hints.
/// </summary>
/// <param name="inputItems">The input items.</param>
/// <param name="searchTerm">The search term.</param>
2013-04-27 06:05:33 -07:00
/// <returns>Task{IEnumerable{SearchHintInfo}}.</returns>
Task<IEnumerable<SearchHintInfo>> GetSearchHints(IEnumerable<BaseItem> inputItems, string searchTerm);
2013-03-28 15:00:58 -07:00
}
}