aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/IUserService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
-rw-r--r--src/slskd/Users/IUserService.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs
index b1e98a19..f7a03a33 100644
--- a/src/slskd/Users/IUserService.cs
+++ b/src/slskd/Users/IUserService.cs
@@ -30,7 +30,7 @@ namespace slskd.Users
/// </summary>
/// <param name="username">The username of the peer.</param>
/// <returns>The group for the specified username.</returns>
- Task<string> GetGroupAsync(string username);
+ string GetGroup(string username);
/// <summary>
/// Retrieves peer <see cref="Info"/>.
@@ -66,8 +66,9 @@ namespace slskd.Users
/// Retrieves a value indicating whether the specified peer is privileged.
/// </summary>
/// <param name="username">The username of the peer.</param>
+ /// <param name="bypassCache">A value indicating whether to bypass the cache and query the server.</param>
/// <returns>A value indicating whether the specified peer is privileged.</returns>
- Task<bool> IsPrivilegedAsync(string username);
+ Task<bool> IsPrivilegedAsync(string username, bool bypassCache = false);
/// <summary>
/// Adds the specified username to the server-side user list.