From 348055d687d1a748e435b4ede4e7db4ca5616609 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 27 Dec 2023 12:12:43 -0600 Subject: list options --- src/slskd/Shares/IShareService.cs | 7 ++++--- src/slskd/Shares/ShareService.cs | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs index 957b0639..39e5975c 100644 --- a/src/slskd/Shares/IShareService.cs +++ b/src/slskd/Shares/IShareService.cs @@ -77,11 +77,12 @@ namespace slskd.Shares Task ListDirectoryAsync(string directory); /// - /// Returns the list of all records matching the specified . + /// Returns the list of all started at or after the specified + /// unix timestamp. /// - /// An optional expression used to locate scans. + /// A unix timestamp that serves as the lower bound of the time-based listing. /// The operation context, including the list of found scans. - Task> ListScansAsync(Expression> predicate = null); + Task> ListScansAsync(long startedAtOrAfter = 0); /// /// Requests that a share scan is performed. diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs index c1622ee4..6b5fdd07 100644 --- a/src/slskd/Shares/ShareService.cs +++ b/src/slskd/Shares/ShareService.cs @@ -308,12 +308,13 @@ namespace slskd.Shares } /// - /// Returns the list of all records matching the specified . + /// Returns the list of all started at or after the specified + /// unix timestamp. /// - /// An optional expression used to locate scans. + /// A unix timestamp that serves as the lower bound of the time-based listing. /// The operation context, including the list of found scans. - public Task> ListScansAsync(Expression> predicate = null) - => Task.FromResult(Local.Repository.ListScans(predicate)); + public Task> ListScansAsync(long startedAtOrAfter = 0) + => Task.FromResult(Local.Repository.ListScans(startedAtOrAfter)); /// /// Requests that a share scan is performed. -- cgit v1.2.3