1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00
Sonarr/NzbDrone.Core/Indexers/NewznabRepository.cs
2013-03-25 23:19:51 -07:00

27 lines
635 B
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers
{
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
{
IEnumerable<NewznabDefinition> Enabled();
}
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
{
public NewznabRepository(IDbConnection database) : base(database)
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
return Where(n => n.Enabled);
}
}
}