diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-01-01 14:54:57 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-01-01 14:54:57 -0600 |
| commit | d409b1e3e371cfe8fd1e59e9ad53b0f7e4edafca (patch) | |
| tree | ec3c284cf35faaba26c097cede24f58fb47aecba /src/slskd/Users/IUserService.cs | |
| parent | 8bb4c683335f95926729ec473b54d07dd631548b (diff) | |
| download | slskd-d409b1e3e371cfe8fd1e59e9ad53b0f7e4edafca.tar.gz | |
revert all the changes to User
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
| -rw-r--r-- | src/slskd/Users/IUserService.cs | 28 |
1 files changed, 7 insertions, 21 deletions
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 @@ -37,6 +37,13 @@ namespace slskd.Users IReadOnlyList<string> WatchedUsernames { get; } /// <summary> + /// Gets the name of the group for the specified <paramref name="username"/>. + /// </summary> + /// <param name="username">The username of the peer.</param> + /// <returns>The group for the specified username.</returns> + string GetGroup(string username); + + /// <summary> /// Retrieves peer <see cref="Info"/>. /// </summary> /// <param name="username">The username of the peer.</param> @@ -58,13 +65,6 @@ namespace slskd.Users Task<Status> GetStatusAsync(string username); /// <summary> - /// Retrieves the current <see cref="Statistics"/> of a peer. - /// </summary> - /// <param name="username">The username of the peer.</param> - /// <returns>The retrieved statistics.</returns> - Task<Statistics> GetStatisticsAsync(string username); - - /// <summary> /// Grants the specified peer the specified number of privilege days. /// </summary> /// <param name="username">The username of the peer.</param> @@ -87,20 +87,6 @@ namespace slskd.Users bool IsWatched(string username); /// <summary> - /// Resolves the name of the group for the specified <paramref name="username"/>. - /// </summary> - /// <remarks> - /// 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. - /// </remarks> - /// <param name="username">The username of the peer.</param> - /// <param name="status">The optional status for the user.</param> - /// <param name="statistics">The optional statistics for the user.</param> - /// <returns>The group for the specified username.</returns> - string ResolveGroup(string username, Status status = null, Statistics statistics = null); - - /// <summary> /// Adds the specified username to the server-side user list. /// </summary> /// <param name="username">The username of the peer.</param> |
