mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
SeriesStats moved to its own Repo
This commit is contained in:
parent
98df1be981
commit
a04a5e8669
10 changed files with 92 additions and 41 deletions
24
NzbDrone.Core/SeriesStats/SeriesStatisticsService.cs
Normal file
24
NzbDrone.Core/SeriesStats/SeriesStatisticsService.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue