aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-18 15:40:41 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-18 15:40:41 -0500
commitab1c7066f7b8b7ad55082b27a40c36501b923aa1 (patch)
treec2f694f2c5436c54c95b065f983647ba320e2e81 /src
parenteec77d30a76c2ab4809aeb56f635903d81ef6355 (diff)
downloadslskd-ab1c7066f7b8b7ad55082b27a40c36501b923aa1.tar.gz
add Query() to interface
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Uploads/UploadService.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs
index a298f523..4361ece1 100644
--- a/src/slskd/Transfers/Uploads/UploadService.cs
+++ b/src/slskd/Transfers/Uploads/UploadService.cs
@@ -127,6 +127,15 @@ namespace slskd.Transfers.Uploads
int Prune(int age, params TransferStates[] states);
/// <summary>
+ /// Returns a list of all uploads matching the specified <paramref name="query"/>, projected to type <typeparamref name="TResult"/>.
+ /// </summary>
+ /// <typeparam name="TResult">The Type of the returned projection.</typeparam>
+ /// <param name="query">The query expression.</param>
+ /// <param name="includeRemoved">A value indicating whether to include uploads that have been removed previously.</param>
+ /// <returns>The list of uploads matching the specified query.</returns>
+ List<TResult> Query<TResult>(Func<IQueryable<Transfer>, IQueryable<TResult>> query, bool includeRemoved = false);
+
+ /// <summary>
/// Removes the completed upload matching the specified <paramref name="id"/>.
/// </summary>
/// <remarks>This is a soft delete; the record is retained for historical retrieval.</remarks>