2010-09-28 22:44:33 +02:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2010-10-21 03:49:23 +02:00
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
using NzbDrone.Core.Repository;
|
2010-09-28 22:44:33 +02:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
public interface IEpisodeProvider
|
|
|
|
{
|
2010-10-21 03:49:23 +02:00
|
|
|
Episode GetEpisode(long id);
|
2010-10-24 09:46:58 +02:00
|
|
|
Episode GetEpisode(int seriesId, int seasonNumber, int episodeNumber);
|
2010-10-21 03:49:23 +02:00
|
|
|
IList<Episode> GetEpisodeBySeries(long seriesId);
|
|
|
|
String GetSabTitle(Episode episode);
|
2010-09-28 22:44:33 +02: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>
|
2011-04-04 06:54:58 +02:00
|
|
|
bool IsNeeded(EpisodeParseResult episode);
|
2010-10-05 08:21:18 +02:00
|
|
|
|
2010-10-17 19:22:48 +02:00
|
|
|
void RefreshEpisodeInfo(int seriesId);
|
2011-02-10 07:42:46 +01:00
|
|
|
void RefreshEpisodeInfo(Season season);
|
2010-10-30 04:46:32 +02:00
|
|
|
IList<Episode> GetEpisodeBySeason(long seasonId);
|
2011-02-18 07:49:23 +01:00
|
|
|
void DeleteEpisode(int episodeId);
|
2011-02-23 07:23:59 +01:00
|
|
|
void UpdateEpisode(Episode episode);
|
2010-09-28 22:44:33 +02:00
|
|
|
}
|
|
|
|
}
|