diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-22 09:39:23 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-22 09:39:23 -0600 |
| commit | 979acc196f01bf53bf0141cf80f684172433d472 (patch) | |
| tree | ba76a7ff5569e4b16f3d24b9a33d7376e19de4f1 /src/slskd/Users/IUserService.cs | |
| parent | 00944550a0fb15df86ce2574e16b6f6785995c8c (diff) | |
| download | slskd-979acc196f01bf53bf0141cf80f684172433d472.tar.gz | |
track and expose watched usernames
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
| -rw-r--r-- | src/slskd/Users/IUserService.cs | 12 |
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> |
