2013-04-07 09:30:37 +02:00
|
|
|
|
using System;
|
|
|
|
|
using NzbDrone.Core.DecisionEngine;
|
|
|
|
|
using NzbDrone.Core.Download;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.IndexerSearch
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
interface ISearchAndDownload
|
|
|
|
|
{
|
|
|
|
|
void SearchSingle(int seriesId, int seasonNumber, int episodeNumber);
|
|
|
|
|
void SearchDaily(int seriesId, DateTime airDate);
|
|
|
|
|
void SearchSeason(int seriesId, int seasonNumber);
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-07 02:17:57 +02:00
|
|
|
|
/* public class SearchAndDownloadService : ISearchAndDownload
|
2013-04-07 09:30:37 +02:00
|
|
|
|
{
|
|
|
|
|
private readonly ISearchForNzb _searchService;
|
|
|
|
|
private readonly IMakeDownloadDecision _downloadDecisionMaker;
|
|
|
|
|
|
|
|
|
|
public SearchAndDownloadService(ISearchForNzb searchService, IMakeDownloadDecision downloadDecisionMaker)
|
|
|
|
|
{
|
|
|
|
|
_searchService = searchService;
|
|
|
|
|
_downloadDecisionMaker = downloadDecisionMaker;
|
|
|
|
|
}
|
|
|
|
|
|
2013-06-07 02:17:57 +02:00
|
|
|
|
public void FetchSearchSingle(int seriesId, int seasonNumber, int episodeNumber)
|
2013-04-07 09:30:37 +02:00
|
|
|
|
{
|
|
|
|
|
var result = _searchService.SearchSingle(seriesId, seasonNumber, episodeNumber);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SearchDaily(int seriesId, DateTime airDate)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SearchSeason(int seriesId, int seasonNumber)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
2013-06-07 02:17:57 +02:00
|
|
|
|
}*/
|
2013-04-07 09:30:37 +02:00
|
|
|
|
}
|