diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-21 15:05:19 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-21 15:05:19 -0600 |
| commit | d3f4c1d58101b0288c3caa70b3114e0da599daf9 (patch) | |
| tree | cea1a71ea19e819fa334fd3589752124690c43d9 /src | |
| parent | 4ac1a5207967d5fd34a91cd257a60401df696706 (diff) | |
| download | slskd-d3f4c1d58101b0288c3caa70b3114e0da599daf9.tar.gz | |
expose Users, remove bypassCache flag
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Users/IUserService.cs | 9 |
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. |
