aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-02-21 15:05:19 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-02-21 15:05:19 -0600
commitd3f4c1d58101b0288c3caa70b3114e0da599daf9 (patch)
treecea1a71ea19e819fa334fd3589752124690c43d9 /src
parent4ac1a5207967d5fd34a91cd257a60401df696706 (diff)
downloadslskd-d3f4c1d58101b0288c3caa70b3114e0da599daf9.tar.gz
expose Users, remove bypassCache flag
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Users/IUserService.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs
index f7a03a33..3c716116 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,11 @@ namespace slskd.Users
public interface IUserService
{
/// <summary>
+ /// Gets the list of tracked users.
+ /// </summary>
+ IReadOnlyList<User> Users { get; }
+
+ /// <summary>
/// Gets the name of the group for the specified <paramref name="username"/>.
/// </summary>
/// <param name="username">The username of the peer.</param>
@@ -66,9 +72,8 @@ namespace slskd.Users
/// Retrieves a value indicating whether the specified peer is privileged.
/// </summary>
/// <param name="username">The username of the peer.</param>
- /// <param name="bypassCache">A value indicating whether to bypass the cache and query the server.</param>
/// <returns>A value indicating whether the specified peer is privileged.</returns>
- Task<bool> IsPrivilegedAsync(string username, bool bypassCache = false);
+ Task<bool> IsPrivilegedAsync(string username);
/// <summary>
/// Adds the specified username to the server-side user list.