diff options
author | crupest <crupest@outlook.com> | 2021-04-28 16:35:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-28 16:35:47 +0800 |
commit | 31be743207c09cc6e6cfff5f65d12126fb41cca3 (patch) | |
tree | fd4ce598916ece4a5cb14193b0b3ba421f6494de /BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs | |
parent | ab0fb093ee0769ff67b3b71efdfcccd34bd8683a (diff) | |
download | timeline-31be743207c09cc6e6cfff5f65d12126fb41cca3.tar.gz timeline-31be743207c09cc6e6cfff5f65d12126fb41cca3.tar.bz2 timeline-31be743207c09cc6e6cfff5f65d12126fb41cca3.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs')
-rw-r--r-- | BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs b/BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs index fda35aac..7ec855aa 100644 --- a/BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs +++ b/BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs @@ -14,7 +14,7 @@ namespace Timeline.Services.User.Avatar /// <param name="userId">User id.</param>
/// <returns>The avatar digest.</returns>
/// <exception cref="UserNotExistException">Thrown when user does not exist.</exception>
- Task<ICacheableDataDigest> GetAvatarDigest(long userId);
+ Task<ICacheableDataDigest> GetAvatarDigestAsync(long userId);
/// <summary>
/// Get avatar of a user. If the user has no avatar set, a default one is returned.
@@ -22,7 +22,7 @@ namespace Timeline.Services.User.Avatar /// <param name="userId">User id.</param>
/// <returns>The avatar.</returns>
/// <exception cref="UserNotExistException">Thrown when user does not exist.</exception>
- Task<ByteData> GetAvatar(long userId);
+ Task<ByteData> GetAvatarAsync(long userId);
/// <summary>
/// Set avatar for a user.
@@ -33,13 +33,13 @@ namespace Timeline.Services.User.Avatar /// <exception cref="ArgumentNullException">Thrown if <paramref name="avatar"/> is null.</exception>
/// <exception cref="UserNotExistException">Thrown when user does not exist.</exception>
/// <exception cref="ImageException">Thrown if avatar is of bad format.</exception>
- Task<ICacheableDataDigest> SetAvatar(long userId, ByteData avatar);
+ Task<ICacheableDataDigest> SetAvatarAsync(long userId, ByteData avatar);
/// <summary>
/// Remove avatar of a user.
/// </summary>
/// <param name="userId">User id.</param>
/// <exception cref="UserNotExistException">Thrown when user does not exist.</exception>
- Task DeleteAvatar(long userId);
+ Task DeleteAvatarAsync(long userId);
}
}
|