mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
#680 - Support new episode file sorting added dummy results repository
This commit is contained in:
@@ -139,6 +139,7 @@
|
||||
<Compile Include="News\INewsService.cs" />
|
||||
<Compile Include="Notifications\INotificationsRepository.cs" />
|
||||
<Compile Include="Notifications\NotificationUpdateEventArgs.cs" />
|
||||
<Compile Include="Persistence\IFileSortingRepository.cs" />
|
||||
<Compile Include="Persistence\MediaStreamQuery.cs" />
|
||||
<Compile Include="Providers\IDynamicInfoProvider.cs" />
|
||||
<Compile Include="Providers\IImageProvider.cs" />
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using MediaBrowser.Model.FileSorting;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Controller.Persistence
|
||||
{
|
||||
public interface IFileSortingRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// Saves the result.
|
||||
/// </summary>
|
||||
/// <param name="result">The result.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task SaveResult(FileSortingResult result, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the results.
|
||||
/// </summary>
|
||||
/// <param name="query">The query.</param>
|
||||
/// <returns>IEnumerable{FileSortingResult}.</returns>
|
||||
IEnumerable<FileSortingResult> GetResults(FileSortingResultQuery query);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user