aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/IUserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-02-22 09:39:23 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-02-22 09:39:23 -0600
commit979acc196f01bf53bf0141cf80f684172433d472 (patch)
treeba76a7ff5569e4b16f3d24b9a33d7376e19de4f1 /src/slskd/Users/IUserService.cs
parent00944550a0fb15df86ce2574e16b6f6785995c8c (diff)
downloadslskd-979acc196f01bf53bf0141cf80f684172433d472.tar.gz
track and expose watched usernames
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
-rw-r--r--src/slskd/Users/IUserService.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs
index 3c716116..e78b1b1c 100644
--- a/src/slskd/Users/IUserService.cs
+++ b/src/slskd/Users/IUserService.cs
@@ -32,6 +32,11 @@ namespace slskd.Users
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>
@@ -76,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>