* add actor metadata * show actors in ui * get full movie/show metadata from plex * store actor thumbnail url * rework movie detail page * metadata fixes * rework show detail page * rework artist page * code cleanup
55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ErsatzTV.Core.Domain;
|
|
using ErsatzTV.Core.Plex;
|
|
using LanguageExt;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Plex
|
|
{
|
|
public interface IPlexServerApiClient
|
|
{
|
|
Task<Either<BaseError, List<PlexLibrary>>> GetLibraries(
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexMovie>>> GetMovieLibraryContents(
|
|
PlexLibrary library,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexShow>>> GetShowLibraryContents(
|
|
PlexLibrary library,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexSeason>>> GetShowSeasons(
|
|
PlexLibrary library,
|
|
PlexShow show,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexEpisode>>> GetSeasonEpisodes(
|
|
PlexLibrary library,
|
|
PlexSeason season,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, MovieMetadata>> GetMovieMetadata(
|
|
PlexLibrary library,
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, ShowMetadata>> GetShowMetadata(
|
|
PlexLibrary library,
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, MediaVersion>> GetStatistics(
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
}
|
|
}
|