mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
26 lines
720 B
C#
26 lines
720 B
C#
using Kyoo.Models;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Kyoo.Controllers
|
|
{
|
|
public interface IMetadataProvider
|
|
{
|
|
public string Name { get; }
|
|
|
|
//For the collection
|
|
Task<Collection> GetCollectionFromName(string name);
|
|
|
|
//For the show
|
|
Task<Show> GetShowByID(string id);
|
|
Task<Show> GetShowFromName(string showName, bool isMovie);
|
|
Task<IEnumerable<PeopleLink>> GetPeople(Show show);
|
|
|
|
//For the seasons
|
|
Task<Season> GetSeason(Show show, long seasonNumber);
|
|
|
|
//For the episodes
|
|
Task<Episode> GetEpisode(Show show, long seasonNumber, long episodeNumber, long absoluteNumber);
|
|
}
|
|
}
|