2024-07-03 22:18:32 +02:00
|
|
|
|
using WatchIt.Common.Model.Genres;
|
|
|
|
|
|
using WatchIt.Common.Model.Media;
|
2024-09-25 22:11:28 +02:00
|
|
|
|
using WatchIt.Common.Model.Photos;
|
2024-09-28 02:36:53 +02:00
|
|
|
|
using WatchIt.Common.Model.Rating;
|
2024-10-06 23:16:53 +02:00
|
|
|
|
using WatchIt.Common.Model.Roles;
|
2024-07-03 22:18:32 +02:00
|
|
|
|
|
2024-10-27 22:09:46 +01:00
|
|
|
|
namespace WatchIt.Website.Services.Client.Media;
|
2024-07-03 22:18:32 +02:00
|
|
|
|
|
2024-10-27 22:09:46 +01:00
|
|
|
|
public interface IMediaClientService
|
2024-07-03 22:18:32 +02:00
|
|
|
|
{
|
2024-10-08 02:14:16 +02:00
|
|
|
|
Task GetAllMedia(MediaQueryParameters? query = null, Action<IEnumerable<MediaResponse>>? successAction = null);
|
2024-09-20 23:37:55 +02:00
|
|
|
|
Task GetMedia(long mediaId, Action<MediaResponse>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
|
|
|
|
|
|
Task GetMediaGenres(long mediaId, Action<IEnumerable<GenreResponse>>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PostMediaGenre(long mediaId, long genreId, Action? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null, Action? notFoundAction = null);
|
2024-09-25 22:11:28 +02:00
|
|
|
|
Task DeleteMediaGenre(long mediaId, long genreId, Action? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null, Action? notFoundAction = null);
|
2024-09-20 23:37:55 +02:00
|
|
|
|
|
2024-09-28 02:36:53 +02:00
|
|
|
|
Task GetMediaRating(long mediaId, Action<RatingResponse>? successAction = null, Action? notFoundAction = null);
|
2024-09-20 23:37:55 +02:00
|
|
|
|
Task GetMediaRatingByUser(long mediaId, long userId, Action<short>? successAction = null, Action? notFoundAction = null);
|
2024-09-28 02:36:53 +02:00
|
|
|
|
Task PutMediaRating(long mediaId, RatingRequest body, Action? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? notFoundAction = null);
|
2024-09-20 23:37:55 +02:00
|
|
|
|
Task DeleteMediaRating(long mediaId, Action? successAction = null, Action? unauthorizedAction = null);
|
2024-09-21 21:11:21 +02:00
|
|
|
|
|
|
|
|
|
|
Task PostMediaView(long mediaId, Action? successAction = null, Action? notFoundAction = null);
|
2024-09-20 23:37:55 +02:00
|
|
|
|
|
2024-09-25 22:11:28 +02:00
|
|
|
|
Task GetMediaPoster(long mediaId, Action<MediaPosterResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PutMediaPoster(long mediaId, MediaPosterRequest data, Action<MediaPosterResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
|
|
|
|
|
Task DeleteMediaPoster(long mediaId, Action? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
|
|
|
|
|
|
|
|
|
|
|
Task GetMediaPhotos(long mediaId, PhotoQueryParameters? query = null, Action<IEnumerable<PhotoResponse>>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task GetMediaPhotoRandomBackground(long mediaId, Action<PhotoResponse>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PostMediaPhoto(long mediaId, MediaPhotoRequest data, Action? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null, Action? notFoundAction = null);
|
2024-10-06 23:16:53 +02:00
|
|
|
|
|
|
|
|
|
|
Task GetMediaAllActorRoles(long id, ActorRoleMediaQueryParameters? query = null, Action<IEnumerable<ActorRoleResponse>>? successAction = null);
|
2024-10-08 19:56:14 +02:00
|
|
|
|
Task PostMediaActorRole(long id, ActorRoleMediaRequest data, Action<ActorRoleResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
2024-10-06 23:16:53 +02:00
|
|
|
|
Task GetMediaAllCreatorRoles(long id, CreatorRoleMediaQueryParameters? query = null, Action<IEnumerable<CreatorRoleResponse>>? successAction = null);
|
2024-10-08 19:56:14 +02:00
|
|
|
|
Task PostMediaCreatorRole(long id, CreatorRoleMediaRequest data, Action<CreatorRoleResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
2024-07-03 22:18:32 +02:00
|
|
|
|
}
|