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-19 13:36:01 +02:00
|
|
|
|
Task Get(long mediaId, Action<MediaResponse> successAction = null, Action? notFoundAction = null);
|
2024-07-30 16:19:51 +02:00
|
|
|
|
Task GetGenres(long mediaId, Action<IEnumerable<GenreResponse>>? successAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
Task PostGenre(long mediaId, long genreId, Action? successAction = null, Action? unauthorizedAction = null, Action? forbiddenAction = null, Action? notFoundAction = null);
|
|
|
|
|
|
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
|
|
|
|
}
|