[frontend/api] Add get and delete for avatar and banner
This commit is contained in:
parent
93fd573ca6
commit
496f2f003a
1 changed files with 12 additions and 0 deletions
|
@ -11,6 +11,18 @@ internal class ProfileControllerModel(ApiClient api)
|
|||
public Task UpdateProfileAsync(UserProfileEntity request) =>
|
||||
api.CallAsync(HttpMethod.Put, "/profile", data: request);
|
||||
|
||||
public Task<string> GetAvatarUrlAsync() =>
|
||||
api.CallAsync<string>(HttpMethod.Get, "/profile/avatar");
|
||||
|
||||
public Task DeleteAvatarAsync() =>
|
||||
api.CallAsync(HttpMethod.Delete, "/profile/avatar");
|
||||
|
||||
public Task<string> GetBannerUrlAsync() =>
|
||||
api.CallAsync<string>(HttpMethod.Get, "/profile/banner");
|
||||
|
||||
public Task DeleteBannerAsync() =>
|
||||
api.CallAsync(HttpMethod.Delete, "/profile/banner");
|
||||
|
||||
public Task<string> GetDisplayNameAsync() =>
|
||||
api.CallAsync<string>(HttpMethod.Get, "/profile/display_name");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue