mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 07:52:37 +01:00
21 lines
528 B
C#
21 lines
528 B
C#
|
using System.Collections.Generic;
|
|||
|
using NzbDrone.Core.Indexers;
|
|||
|
|
|||
|
namespace NzbDrone.Api.Indexers
|
|||
|
{
|
|||
|
public class IndexerModule : NzbDroneRestModule<IndexerResource>
|
|||
|
{
|
|||
|
private readonly IIndexerService _indexerService;
|
|||
|
|
|||
|
public IndexerModule(IIndexerService indexerService)
|
|||
|
{
|
|||
|
_indexerService = indexerService;
|
|||
|
GetResourceAll = GetAll;
|
|||
|
}
|
|||
|
|
|||
|
private List<IndexerResource> GetAll()
|
|||
|
{
|
|||
|
return ApplyToList(_indexerService.All);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|