mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 02:37:40 +00:00
19b3add783
SeriesStats are no longer wipred from UI on update
25 lines
698 B
C#
25 lines
698 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|