Stream custom live channels using your own media
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.
 
 

69 lines
2.3 KiB

using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using ErsatzTV.Infrastructure.Emby.Models;
using Refit;
namespace ErsatzTV.Infrastructure.Emby
{
[Headers("Accept: application/json")]
public interface IEmbyApi
{
[Get("/System/Info")]
public Task<EmbySystemInformationResponse> GetSystemInformation(
[Header("X-Emby-Token")]
string apiKey,
CancellationToken cancellationToken);
[Get("/Library/VirtualFolders")]
public Task<List<EmbyLibraryResponse>> GetLibraries(
[Header("X-Emby-Token")]
string apiKey);
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetMovieLibraryItems(
[Header("X-Emby-Token")]
string apiKey,
[Query]
string parentId,
[Query]
string fields =
"Path,Genres,Tags,DateCreated,Etag,Overview,Taglines,Studios,People,ProductionYear,PremiereDate,MediaSources",
[Query]
string includeItemTypes = "Movie");
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetShowLibraryItems(
[Header("X-Emby-Token")]
string apiKey,
[Query]
string parentId,
[Query]
string fields =
"Path,Genres,Tags,DateCreated,Etag,Overview,Taglines,Studios,People,ProductionYear,PremiereDate,MediaSources",
[Query]
string includeItemTypes = "Series");
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetSeasonLibraryItems(
[Header("X-Emby-Token")]
string apiKey,
[Query]
string parentId,
[Query]
string fields = "Path,DateCreated,Etag,Taglines",
[Query]
string includeItemTypes = "Season");
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetEpisodeLibraryItems(
[Header("X-Emby-Token")]
string apiKey,
[Query]
string parentId,
[Query]
string fields = "Path,DateCreated,Etag,Overview,ProductionYear,PremiereDate,MediaSources,LocationType",
[Query]
string includeItemTypes = "Episode");
}
}