aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/IUserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-01-30 21:07:50 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-01-30 21:07:50 -0600
commit7d89bc4ad9035a37b1506a635d9fb3fe3df4cde0 (patch)
tree63527b2f0ae7fc693f3fd56d24e426ac904b1e9e /src/slskd/Users/IUserService.cs
parentc586e614c7894c8791541f1526d38a989160eaa0 (diff)
downloadslskd-7d89bc4ad9035a37b1506a635d9fb3fe3df4cde0.tar.gz
add user/group mapping to UserService
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
-rw-r--r--src/slskd/Users/IUserService.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs
index 469acef6..ad368c65 100644
--- a/src/slskd/Users/IUserService.cs
+++ b/src/slskd/Users/IUserService.cs
@@ -26,6 +26,13 @@ namespace slskd.Users
public interface IUserService
{
/// <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>