1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-03-05 15:15:59 +02:00
Sonarr/NzbDrone.Core/Indexers/Newznab/NewznabRepository.cs

24 lines
582 B
C#
Raw Normal View History

2013-04-07 00:30:37 -07:00
using System.Collections.Generic;
2013-02-22 20:37:23 -08:00
using NzbDrone.Core.Datastore;
2013-04-07 00:30:37 -07:00
namespace NzbDrone.Core.Indexers.Newznab
2013-02-22 20:37:23 -08:00
{
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
{
IEnumerable<NewznabDefinition> Enabled();
}
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
{
2013-03-24 21:46:51 -07:00
public NewznabRepository(IDatabase database)
: base(database)
2013-02-22 20:37:23 -08:00
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
2013-03-26 20:44:52 -07:00
return Query.Where(n => n.Enable);
2013-02-22 20:37:23 -08:00
}
}
}