aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/IShareRepository.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-12-27 12:12:02 -0600
committerJP Dillingham <jp@dillingham.me>2023-12-27 12:12:02 -0600
commitbd338423afb1f8d361deccfd4786e7ec4b27e8dc (patch)
treeee6e3749b36f5bf3a3af51ff966772ed65ce95cd /src/slskd/Shares/IShareRepository.cs
parentde6d7017ef5efbfe594be516278139265ca6668e (diff)
downloadslskd-bd338423afb1f8d361deccfd4786e7ec4b27e8dc.tar.gz
simplify (and implement) list options
Diffstat (limited to 'src/slskd/Shares/IShareRepository.cs')
-rw-r--r--src/slskd/Shares/IShareRepository.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Shares/IShareRepository.cs b/src/slskd/Shares/IShareRepository.cs
index 5546bff7..41b0fe32 100644
--- a/src/slskd/Shares/IShareRepository.cs
+++ b/src/slskd/Shares/IShareRepository.cs
@@ -19,7 +19,6 @@ namespace slskd.Shares
{
using System;
using System.Collections.Generic;
- using System.Linq.Expressions;
using Soulseek;
/// <summary>
@@ -132,11 +131,12 @@ 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"/>.
+ /// Returns the list of all <see cref="Scan"/> started at or after the specified <paramref name="startedAtOrAfter"/>
+ /// unix timestamp.
/// </summary>
- /// <param name="predicate">An optional expression used to filter scans.</param>
+ /// <param name="startedAtOrAfter">A unix timestamp that serves as the lower bound of the time-based listing.</param>
/// <returns>The operation context, including the list of found scans.</returns>
- IEnumerable<Scan> ListScans(Expression<Func<Scan, bool>> predicate = null);
+ IEnumerable<Scan> ListScans(long startedAtOrAfter = 0);
/// <summary>
/// Deletes directory records with a timestamp prior to the specified <paramref name="olderThanTimestamp"/>.