diff options
author | crupest <crupest@outlook.com> | 2019-04-30 20:00:42 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-30 20:00:42 +0800 |
commit | 070a4a8399201150a633c80608a13cc44781a3c4 (patch) | |
tree | 37c2b6f9dcb3d6f57867ebc7538523d1a338183d /Timeline/Services/UserService.cs | |
parent | 2c9ee904731d3c931607ba99f1bab21fcb1e1bb4 (diff) | |
download | timeline-070a4a8399201150a633c80608a13cc44781a3c4.tar.gz timeline-070a4a8399201150a633c80608a13cc44781a3c4.tar.bz2 timeline-070a4a8399201150a633c80608a13cc44781a3c4.zip |
Throw exception in cos service.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r-- | Timeline/Services/UserService.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs index 9ebf2668..8ab3bc54 100644 --- a/Timeline/Services/UserService.cs +++ b/Timeline/Services/UserService.cs @@ -161,6 +161,14 @@ namespace Timeline.Services /// <returns>The url if user exists. Null if user does not exist.</returns> Task<string> GetAvatarUrl(string username); + /// <summary> + /// Put a avatar of a user. + /// </summary> + /// <param name="username">The name of user.</param> + /// <param name="data">The data of avatar image.</param> + /// <param name="mimeType">The mime type of the image.</param> + /// <returns>Return <see cref="PutAvatarResult.Success"/> if success. + /// Return <see cref="PutAvatarResult.UserNotExists"/> if user does not exist.</returns> Task<PutAvatarResult> PutAvatar(string username, byte[] data, string mimeType); } |