diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-12-26 20:56:36 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-12-26 20:56:36 -0600 |
| commit | 5d99b9e4e80a63e48ed8d226a733f66c0a61d313 (patch) | |
| tree | 00829dca48d78e4116008a5e4b3efe509a5abcbc /src/slskd/Shares/IShareRepository.cs | |
| parent | bb2f31e9a6f82763d1146c7b64a643192a5ab775 (diff) | |
| download | slskd-5d99b9e4e80a63e48ed8d226a733f66c0a61d313.tar.gz | |
add logic to return a list of previous/active scans
Diffstat (limited to 'src/slskd/Shares/IShareRepository.cs')
| -rw-r--r-- | src/slskd/Shares/IShareRepository.cs | 8 |
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> |
