From 979acc196f01bf53bf0141cf80f684172433d472 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 22 Feb 2022 09:39:23 -0600 Subject: track and expose watched usernames --- src/slskd/Users/IUserService.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/slskd/Users/IUserService.cs') 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 @@ -31,6 +31,11 @@ namespace slskd.Users /// IReadOnlyList Users { get; } + /// + /// Gets the list of watched usernames. + /// + IReadOnlyList WatchedUsernames { get; } + /// /// Gets the name of the group for the specified . /// @@ -75,6 +80,13 @@ namespace slskd.Users /// A value indicating whether the specified peer is privileged. Task IsPrivilegedAsync(string username); + /// + /// Gets a value indicating whether the specified is watched. + /// + /// The username of the peer. + /// A value indicating whether the username is watched. + bool IsWatched(string username); + /// /// Adds the specified username to the server-side user list. /// -- cgit v1.2.3