mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
45 lines
1.4 KiB
using ErsatzTV.Core.Domain; |
|
using ErsatzTV.Core.Jellyfin; |
|
|
|
namespace ErsatzTV.Core.Interfaces.Jellyfin; |
|
|
|
public interface IJellyfinApiClient |
|
{ |
|
Task<Either<BaseError, JellyfinServerInformation>> GetServerInformation(string address, string apiKey); |
|
Task<Either<BaseError, List<JellyfinLibrary>>> GetLibraries(string address, string apiKey); |
|
Task<Either<BaseError, string>> GetAdminUserId(string address, string apiKey); |
|
|
|
Task<Either<BaseError, List<JellyfinMovie>>> GetMovieLibraryItems( |
|
string address, |
|
string apiKey, |
|
JellyfinLibrary library); |
|
|
|
Task<Either<BaseError, List<JellyfinShow>>> GetShowLibraryItems( |
|
string address, |
|
string apiKey, |
|
int mediaSourceId, |
|
string libraryId); |
|
|
|
Task<Either<BaseError, List<JellyfinSeason>>> GetSeasonLibraryItems( |
|
string address, |
|
string apiKey, |
|
int mediaSourceId, |
|
string showId); |
|
|
|
Task<Either<BaseError, List<JellyfinEpisode>>> GetEpisodeLibraryItems( |
|
string address, |
|
string apiKey, |
|
JellyfinLibrary library, |
|
string seasonId); |
|
|
|
Task<Either<BaseError, List<JellyfinCollection>>> GetCollectionLibraryItems( |
|
string address, |
|
string apiKey, |
|
int mediaSourceId); |
|
|
|
Task<Either<BaseError, List<MediaItem>>> GetCollectionItems( |
|
string address, |
|
string apiKey, |
|
int mediaSourceId, |
|
string collectionId); |
|
}
|
|
|