mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
27 lines
635 B
C#
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);
|
|
}
|
|
}
|
|
}
|