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 | b2cc1fd087633a1d7c679aab85bb72644750d612 (patch) | |
tree | d7e31a8e57eb119c424ed105428ac2cdbfdb3cb5 /BackEnd/Timeline/Services/User/Avatar/IUserAvatarService.cs | |
parent | 414d547753f9d7b534b3a4dbc618b5284aaa1a87 (diff) | |
download | timeline-b2cc1fd087633a1d7c679aab85bb72644750d612.tar.gz timeline-b2cc1fd087633a1d7c679aab85bb72644750d612.tar.bz2 timeline-b2cc1fd087633a1d7c679aab85bb72644750d612.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);
}
}
|