aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-19 13:08:17 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-19 13:08:17 -0500
commitd4bdd42acfda160e0a78ac302adc92802b237584 (patch)
tree733a2b638b5e8db31fa69b6c2d06c0366dba1808 /MediaBrowser.Controller
parent28c88174ae4c5f5ff15bf4004684d949d54c30e9 (diff)
#680 - Support new episode file sorting added dummy results repository
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/MediaBrowser.Controller.csproj1
-rw-r--r--MediaBrowser.Controller/Persistence/IFileSortingRepository.cs25
2 files changed, 26 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
index 53632a51c0..ee75065072 100644
--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj
+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
@@ -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" />
diff --git a/MediaBrowser.Controller/Persistence/IFileSortingRepository.cs b/MediaBrowser.Controller/Persistence/IFileSortingRepository.cs
new file mode 100644
index 0000000000..117fd7c5cd
--- /dev/null
+++ b/MediaBrowser.Controller/Persistence/IFileSortingRepository.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);
+ }
+}