aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Users/IUserService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-04-05 16:51:39 -0500
committerGitHub <noreply@github.com>2025-04-05 16:51:39 -0500
commitac53fb5b3639292113b06876a05f402f7d1f0520 (patch)
tree29726be4a5ecdb1aae6e4f296ad5af7152ea9ce2 /src/slskd/Users/IUserService.cs
parenteec6e0f098effcb9bfda297a441ca7ffd8d33934 (diff)
parent1a3e8c9d8a1857e1ac0c3fe92d5ab1408aa3d0df (diff)
downloadslskd-ac53fb5b3639292113b06876a05f402f7d1f0520.tar.gz
Merge pull request #1303 from dkschruteBeets/feature/add-profile-picture-support
Feature/add profile picture support
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
-rw-r--r--src/slskd/Users/IUserService.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs
index 75afd442..e84d7461 100644
--- a/src/slskd/Users/IUserService.cs
+++ b/src/slskd/Users/IUserService.cs
@@ -152,5 +152,12 @@ namespace slskd.Users
/// <param name="username">The username of the peer.</param>
/// <returns>The operation context.</returns>
Task WatchAsync(string username);
+
+ /// <summary>
+ /// Gets the profile picture as a byte array if it exists.
+ /// </summary>
+ /// <param name="profilePicture">The profile picture path to resolve.</param>
+ /// <returns>The profile picture as a byte array if it exists and can be read, null otherwise.</returns>
+ byte[] GetProfilePicture(string profilePicture);
}
} \ No newline at end of file