2024-07-03 22:18:32 +02:00
|
|
|
|
using WatchIt.Common.Model.Genres;
|
|
|
|
|
|
using WatchIt.Common.Model.Media;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WatchIt.Website.Services.WebAPI.Media;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IMediaWebAPIService
|
|
|
|
|
|
{
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
Task GetMediaRating(long mediaId, Action<MediaRatingResponse>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task GetMediaRatingByUser(long mediaId, long userId, Action<short>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PutMediaRating(long mediaId, MediaRatingRequest body, Action? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task DeleteMediaRating(long mediaId, Action? successAction = null, Action? unauthorizedAction = null);
|
|
|
|
|
|
|
2024-09-19 22:58:39 +02:00
|
|
|
|
Task GetPhotoMediaRandomBackground(long mediaId, Action<MediaPhotoResponse>? successAction = null, Action? notFoundAction = null);
|
2024-07-30 16:19:51 +02:00
|
|
|
|
Task GetPhotoRandomBackground(Action<MediaPhotoResponse>? successAction = null, Action? notFoundAction = null);
|
2024-09-11 15:59:13 +02:00
|
|
|
|
Task GetPoster(long mediaId, Action<MediaPosterResponse>? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PutPoster(long mediaId, MediaPosterRequest data, Action? successAction = null, Action<IDictionary<string, string[]>>? badRequestAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
|
|
|
|
|
Task DeletePoster(long mediaId, Action? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null);
|
2024-07-03 22:18:32 +02:00
|
|
|
|
}
|