From 1cd4b10a25052e4e82c1f86a9bc92f06f5605114 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 1 Jan 2024 18:43:18 -0600 Subject: wip --- src/slskd/Users/IUserService.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/slskd/Users/IUserService.cs') diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs index 88090f9f..04ef1527 100644 --- a/src/slskd/Users/IUserService.cs +++ b/src/slskd/Users/IUserService.cs @@ -39,10 +39,27 @@ namespace slskd.Users /// /// Gets the name of the group for the specified . /// + /// + /// The group name is fetched from cached data, and lookups should always be fast. + /// /// The username of the peer. /// The group for the specified username. string GetGroup(string username); + /// + /// Gets the name of the group for the specified . + /// + /// + /// An alternative to that does not rely on the + /// internal cache. This method allows privilege and leech detection for users + /// that are not watched. + /// + /// The username of the peer. + /// The peer's status. + /// The peer's statistics + /// The group for the specified username. + string GetGroup(string username, Status status, Statistics statistics); + /// /// Retrieves peer . /// -- cgit v1.2.3