From d409b1e3e371cfe8fd1e59e9ad53b0f7e4edafca Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 1 Jan 2024 14:54:57 -0600 Subject: revert all the changes to User --- src/slskd/Users/IUserService.cs | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'src/slskd/Users/IUserService.cs') diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs index 1d19277c..88090f9f 100644 --- a/src/slskd/Users/IUserService.cs +++ b/src/slskd/Users/IUserService.cs @@ -36,6 +36,13 @@ namespace slskd.Users /// IReadOnlyList WatchedUsernames { get; } + /// + /// Gets the name of the group for the specified . + /// + /// The username of the peer. + /// The group for the specified username. + string GetGroup(string username); + /// /// Retrieves peer . /// @@ -57,13 +64,6 @@ namespace slskd.Users /// The retrieved status. Task GetStatusAsync(string username); - /// - /// Retrieves the current of a peer. - /// - /// The username of the peer. - /// The retrieved statistics. - Task GetStatisticsAsync(string username); - /// /// Grants the specified peer the specified number of privilege days. /// @@ -86,20 +86,6 @@ namespace slskd.Users /// A value indicating whether the username is watched. bool IsWatched(string username); - /// - /// Resolves the name of the group for the specified . - /// - /// - /// If the user is watched, and therefore the application is tracking their status and statistics, leech and privilege - /// detection works as expected. If the user is not watched, their status and statistics can be specified. If the user - /// is neither watched nor status and statistics are supplied, leech and privilege detection will not work. - /// - /// The username of the peer. - /// The optional status for the user. - /// The optional statistics for the user. - /// The group for the specified username. - string ResolveGroup(string username, Status status = null, Statistics statistics = null); - /// /// Adds the specified username to the server-side user list. /// -- cgit v1.2.3