2010-09-28 13:44:33 -07:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2010-10-20 18:49:23 -07:00
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
using NzbDrone.Core.Repository;
|
2010-09-28 13:44:33 -07:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
public interface IEpisodeProvider
|
|
|
|
{
|
2010-10-20 18:49:23 -07:00
|
|
|
Episode GetEpisode(long id);
|
2010-10-24 00:46:58 -07:00
|
|
|
Episode GetEpisode(int seriesId, int seasonNumber, int episodeNumber);
|
2010-10-20 18:49:23 -07:00
|
|
|
IList<Episode> GetEpisodeBySeries(long seriesId);
|
|
|
|
String GetSabTitle(Episode episode);
|
2010-09-28 13:44:33 -07:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Comprehensive check on whether or not this episode is needed.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="episode">Episode that needs to be checked</param>
|
|
|
|
/// <returns></returns>
|
2010-10-20 18:49:23 -07:00
|
|
|
bool IsNeeded(EpisodeModel episode);
|
2010-10-04 23:21:18 -07:00
|
|
|
|
2010-10-17 10:22:48 -07:00
|
|
|
void RefreshEpisodeInfo(int seriesId);
|
2011-02-09 22:42:46 -08:00
|
|
|
void RefreshEpisodeInfo(Season season);
|
2010-10-29 20:46:32 -06:00
|
|
|
IList<Episode> GetEpisodeBySeason(long seasonId);
|
2011-02-17 22:49:23 -08:00
|
|
|
void DeleteEpisode(int episodeId);
|
2011-02-22 22:23:59 -08:00
|
|
|
void UpdateEpisode(Episode episode);
|
2010-09-28 13:44:33 -07:00
|
|
|
}
|
|
|
|
}
|