aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/IUserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-02-25 09:47:06 -0600
committerGitHub <noreply@github.com>2022-02-25 09:47:06 -0600
commit8c7861a0dfc2fd25379e03e1f23b4ae561206fc3 (patch)
tree6a3ae3d3cb2cc7d68f81a4cdd82d76f31516d0af /src/slskd/Users/IUserService.cs
parentda7589fb77be63657b69209386743a008b2ae3d3 (diff)
parent38bb2f3a021120963be657cf2b363b25bfaa4043 (diff)
downloadslskd-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.cs18
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>