2024-07-03 22:18:32 +02:00
|
|
|
|
using WatchIt.Common.Model.Accounts;
|
2024-11-01 01:03:00 +01:00
|
|
|
|
using WatchIt.Common.Model.Movies;
|
2024-11-01 20:44:01 +01:00
|
|
|
|
using WatchIt.Common.Model.Persons;
|
2024-11-01 01:03:00 +01:00
|
|
|
|
using WatchIt.Common.Model.Series;
|
2024-07-03 22:18:32 +02:00
|
|
|
|
|
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-11-03 23:01:34 +01:00
|
|
|
|
Task PutAccountProfilePicture(AccountProfilePictureRequest data, Action<AccountProfilePictureResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null);
|
|
|
|
|
|
Task DeleteAccountProfilePicture(Action? successAction = null, Action? unauthorizedAction = null);
|
2024-11-01 01:03:00 +01:00
|
|
|
|
Task GetAccountInfo(long id, Action<AccountResponse>? successAction = null, Action? notFoundAction = null);
|
2024-11-03 23:01:34 +01:00
|
|
|
|
Task PutAccountProfileInfo(AccountProfileInfoRequest data, Action? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null);
|
2024-11-01 01:03:00 +01:00
|
|
|
|
Task GetAccountRatedMovies(long id, MovieRatedQueryParameters query, Action<IEnumerable<MovieRatedResponse>>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task GetAccountRatedSeries(long id, SeriesRatedQueryParameters query, Action<IEnumerable<SeriesRatedResponse>>? successAction = null, Action? notFoundAction = null);
|
2024-11-01 20:44:01 +01:00
|
|
|
|
Task GetAccountRatedPersons(long id, PersonRatedQueryParameters query, Action<IEnumerable<PersonRatedResponse>>? successAction = null, Action? notFoundAction = null);
|
2024-07-03 22:18:32 +02:00
|
|
|
|
}
|