jellyfin/MediaBrowser.Controller/Library/ILibrarySearchEngine.cs

21 lines
701 B
C#
Raw Normal View History

2013-03-28 22:00:58 +00:00
using MediaBrowser.Controller.Entities;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Library
{
/// <summary>
/// Interface ILibrarySearchEngine
/// </summary>
public interface ILibrarySearchEngine
{
/// <summary>
2013-03-28 22:08:04 +00:00
/// Searches items and returns them in order of relevance.
2013-03-28 22:00:58 +00:00
/// </summary>
/// <param name="items">The items.</param>
/// <param name="searchTerm">The search term.</param>
/// <returns>IEnumerable{BaseItem}.</returns>
2013-03-28 22:08:04 +00:00
/// <exception cref="System.ArgumentNullException">searchTerm</exception>
2013-03-28 22:00:58 +00:00
IEnumerable<BaseItem> Search(IEnumerable<BaseItem> items, string searchTerm);
}
}