jellyfin-server/MediaBrowser.Controller/Persistence/IFileOrganizationRepository.cs

26 lines
867 B
C#
Raw Normal View History

using MediaBrowser.Model.FileOrganization;
2014-01-20 18:46:08 +00:00
using MediaBrowser.Model.Querying;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Persistence
{
public interface IFileOrganizationRepository
{
/// <summary>
/// Saves the result.
/// </summary>
/// <param name="result">The result.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task SaveResult(FileOrganizationResult result, CancellationToken cancellationToken);
/// <summary>
/// Gets the results.
/// </summary>
/// <param name="query">The query.</param>
/// <returns>IEnumerable{FileOrganizationResult}.</returns>
2014-01-20 18:46:08 +00:00
QueryResult<FileOrganizationResult> GetResults(FileOrganizationResultQuery query);
}
}