diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-25 09:47:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-25 09:47:06 -0600 |
| commit | 8c7861a0dfc2fd25379e03e1f23b4ae561206fc3 (patch) | |
| tree | 6a3ae3d3cb2cc7d68f81a4cdd82d76f31516d0af /src/slskd/Users/IUserService.cs | |
| parent | da7589fb77be63657b69209386743a008b2ae3d3 (diff) | |
| parent | 38bb2f3a021120963be657cf2b363b25bfaa4043 (diff) | |
| download | slskd-8c7861a0dfc2fd25379e03e1f23b4ae561206fc3.tar.gz | |
Merge pull request #364 from slskd/privileges
Identify privileged users
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
| -rw-r--r-- | src/slskd/Users/IUserService.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs index ad368c65..e78b1b1c 100644 --- a/src/slskd/Users/IUserService.cs +++ b/src/slskd/Users/IUserService.cs @@ -17,6 +17,7 @@ namespace slskd.Users { + using System.Collections.Generic; using System.Net; using System.Threading.Tasks; @@ -26,6 +27,16 @@ namespace slskd.Users public interface IUserService { /// <summary> + /// Gets the list of tracked users. + /// </summary> + IReadOnlyList<User> Users { get; } + + /// <summary> + /// Gets the list of watched usernames. + /// </summary> + 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> @@ -70,6 +81,13 @@ namespace slskd.Users Task<bool> IsPrivilegedAsync(string username); /// <summary> + /// Gets a value indicating whether the specified <paramref name="username"/> is watched. + /// </summary> + /// <param name="username">The username of the peer.</param> + /// <returns>A value indicating whether the username is watched.</returns> + bool IsWatched(string username); + + /// <summary> /// Adds the specified username to the server-side user list. /// </summary> /// <param name="username">The username of the peer.</param> |
