* add plex show, season sync * sync plex episodes * sync plex episode statistics * update plex artwork as needed * code cleanup * add note about tests
43 lines
1.3 KiB
C#
43 lines
1.3 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, MediaVersion>> GetStatistics(
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
}
|
|
}
|