2013-04-20 23:36:23 +00:00
|
|
|
|
using System.Collections.Generic;
|
2013-07-17 15:41:32 +00:00
|
|
|
|
using System.Linq;
|
2013-04-20 23:36:23 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.SeriesStats
|
|
|
|
|
{
|
|
|
|
|
public interface ISeriesStatisticsService
|
|
|
|
|
{
|
|
|
|
|
List<SeriesStatistics> SeriesStatistics();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SeriesStatisticsService : ISeriesStatisticsService
|
|
|
|
|
{
|
|
|
|
|
private readonly SeriesStatisticsRepository _seriesStatisticsRepository;
|
|
|
|
|
|
|
|
|
|
public SeriesStatisticsService(SeriesStatisticsRepository seriesStatisticsRepository)
|
|
|
|
|
{
|
|
|
|
|
_seriesStatisticsRepository = seriesStatisticsRepository;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<SeriesStatistics> SeriesStatistics()
|
|
|
|
|
{
|
|
|
|
|
return _seriesStatisticsRepository.SeriesStatistics();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|