2024-07-03 22:18:32 +02:00
|
|
|
|
using WatchIt.Common.Model.Accounts;
|
|
|
|
|
|
|
2024-10-27 22:09:46 +01:00
|
|
|
|
namespace WatchIt.Website.Services.Client.Accounts;
|
2024-07-03 22:18:32 +02:00
|
|
|
|
|
2024-10-27 22:09:46 +01:00
|
|
|
|
public interface IAccountsClientService
|
2024-07-03 22:18:32 +02:00
|
|
|
|
{
|
2024-07-30 16:19:51 +02:00
|
|
|
|
Task Register(RegisterRequest data, Action<RegisterResponse>? createdAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null);
|
|
|
|
|
|
Task Authenticate(AuthenticateRequest data, Action<AuthenticateResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null);
|
|
|
|
|
|
Task AuthenticateRefresh(Action<AuthenticateResponse>? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
|
|
|
|
|
Task Logout(Action? successAction = null);
|
|
|
|
|
|
Task GetAccountProfilePicture(long id, Action<AccountProfilePictureResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? notFoundAction = null);
|
2024-10-27 20:22:55 +01:00
|
|
|
|
Task GetAccountInfoById(long id, Action<AccountResponse>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task GetAccountInfo(Action<AccountResponse>? successAction = null, Action? unauthorizedAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PutAccountInfo(AccountRequest data, Action<AccountResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? notFoundAction = null);
|
2024-07-03 22:18:32 +02:00
|
|
|
|
}
|