mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 07:52:37 +01:00
24 lines
577 B
C#
24 lines
577 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
namespace NzbDrone.Core.Indexers
|
|
{
|
|
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
|
|
{
|
|
IEnumerable<NewznabDefinition> Enabled();
|
|
}
|
|
|
|
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
|
|
{
|
|
public NewznabRepository(IDatabase database)
|
|
: base(database)
|
|
{
|
|
}
|
|
|
|
public IEnumerable<NewznabDefinition> Enabled()
|
|
{
|
|
return Query.Where(n => n.Enable);
|
|
}
|
|
}
|
|
}
|