From dbf9a8742745708d7d9da8f1de12e726f06bd7fc Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 24 Jul 2022 13:12:07 -0500 Subject: docs --- src/slskd/Search/ISearchService.cs | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'src/slskd/Search/ISearchService.cs') diff --git a/src/slskd/Search/ISearchService.cs b/src/slskd/Search/ISearchService.cs index 9a45280b..4fe15fae 100644 --- a/src/slskd/Search/ISearchService.cs +++ b/src/slskd/Search/ISearchService.cs @@ -21,25 +21,13 @@ namespace slskd.Search using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; - using SearchOptions = Soulseek.SearchOptions; - using SearchQuery = Soulseek.SearchQuery; - using SearchScope = Soulseek.SearchScope; + using Soulseek; /// /// Handles the lifecycle and persistence of searches. /// public interface ISearchService { - /// - /// Performs a search for the specified and . - /// - /// A unique identifier for the search. - /// The search query. - /// The search scope. - /// Search options. - /// The completed search. - Task StartAsync(Guid id, SearchQuery query, SearchScope scope, SearchOptions options = null); - /// /// Deletes the specified ssearch. /// @@ -53,16 +41,26 @@ namespace slskd.Search /// The expression to use to match searches. /// A value indicating whether to include search responses in the result. /// The found search, or default if not found. - /// Thrown an expression is not supplied. + /// Thrown when an expression is not supplied. Task FindAsync(Expression> expression, bool includeResponses = false); /// - /// Returns a list of all completed and in-progress searches, with responses omitted. + /// Returns a list of all completed and in-progress searches, with responses omitted, matching the optional . /// /// An optional expression used to match searches. - /// The list of searches matching the specified expression. + /// The list of searches matching the specified expression, or all searches if no expression is specified. Task> ListAsync(Expression> expression = null); + /// + /// Performs a search for the specified and . + /// + /// A unique identifier for the search. + /// The search query. + /// The search scope. + /// Search options. + /// The completed search. + Task StartAsync(Guid id, SearchQuery query, SearchScope scope, SearchOptions options = null); + /// /// Cancels the search matching the specified , if it is in progress. /// -- cgit v1.2.3