aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/IShareRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Shares/IShareRepository.cs')
-rw-r--r--src/slskd/Shares/IShareRepository.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Shares/IShareRepository.cs b/src/slskd/Shares/IShareRepository.cs
index f1e59889..5546bff7 100644
--- a/src/slskd/Shares/IShareRepository.cs
+++ b/src/slskd/Shares/IShareRepository.cs
@@ -19,6 +19,7 @@ namespace slskd.Shares
{
using System;
using System.Collections.Generic;
+ using System.Linq.Expressions;
using Soulseek;
/// <summary>
@@ -131,6 +132,13 @@ namespace slskd.Shares
IEnumerable<File> ListFiles(string parentDirectory = null, bool includeFullPath = false);
/// <summary>
+ /// Returns the list of all <see cref="Scan"/> s matching the optionally specified <paramref name="predicate"/>.
+ /// </summary>
+ /// <param name="predicate">An optional expression used to filter scans.</param>
+ /// <returns>The operation context, including the list of found scans.</returns>
+ IEnumerable<Scan> ListScans(Expression<Func<Scan, bool>> predicate = null);
+
+ /// <summary>
/// Deletes directory records with a timestamp prior to the specified <paramref name="olderThanTimestamp"/>.
/// </summary>
/// <param name="olderThanTimestamp">The timestamp before which to delete directories.</param>