You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
582 B
24 lines
582 B
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);
|
|
}
|
|
}
|
|
}
|