2010-09-28 23:44:33 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2010-10-08 06:35:04 +03:00
|
|
|
using NzbDrone.Core.Entities.Episode;
|
2010-09-28 23:44:33 +03:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
public interface IEpisodeProvider
|
|
|
|
{
|
2010-10-11 00:20:43 +03:00
|
|
|
EpisodeInfo GetEpisode(long id);
|
|
|
|
void UpdateEpisode(EpisodeInfo episode);
|
|
|
|
IList<EpisodeInfo> GetEpisodesBySeason(long seasonId);
|
|
|
|
IList<EpisodeInfo> GetEpisodeBySeries(long seriesId);
|
2010-10-08 06:35:04 +03:00
|
|
|
String GetSabTitle(BasicEpisode episode);
|
2010-09-28 23:44:33 +03: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-11 00:20:43 +03:00
|
|
|
bool IsNeeded(RemoteEpisode episode);
|
2010-10-05 09:21:18 +03:00
|
|
|
|
|
|
|
void RefreshSeries(int seriesId);
|
2010-09-28 23:44:33 +03:00
|
|
|
}
|
|
|
|
}
|