1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-30 11:55:18 +00:00
Radarr/NzbDrone.Core/Indexers/Newznab/NewznabRepository.cs
2013-04-07 00:30:37 -07:00

23 lines
582 B
C#

using System.Collections.Generic;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers.Newznab
{
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);
}
}
}