mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-29 11:16:19 +00:00
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
|
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);
|
|||
|
}
|
|||
|
|
|||
|
public class SearchAndDownloadService : ISearchAndDownload
|
|||
|
{
|
|||
|
private readonly ISearchForNzb _searchService;
|
|||
|
private readonly IMakeDownloadDecision _downloadDecisionMaker;
|
|||
|
|
|||
|
public SearchAndDownloadService(ISearchForNzb searchService, IMakeDownloadDecision downloadDecisionMaker)
|
|||
|
{
|
|||
|
_searchService = searchService;
|
|||
|
_downloadDecisionMaker = downloadDecisionMaker;
|
|||
|
}
|
|||
|
|
|||
|
public void SearchSingle(int seriesId, int seasonNumber, int episodeNumber)
|
|||
|
{
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|