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
12 years ago
|
using System.Collections.Generic;
|
||
12 years ago
|
using NzbDrone.Core.Datastore;
|
||
|
|
||
12 years ago
|
namespace NzbDrone.Core.Indexers.Newznab
|
||
12 years ago
|
{
|
||
|
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
|
||
|
{
|
||
|
IEnumerable<NewznabDefinition> Enabled();
|
||
|
}
|
||
|
|
||
|
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
|
||
|
{
|
||
12 years ago
|
public NewznabRepository(IDatabase database)
|
||
|
: base(database)
|
||
12 years ago
|
{
|
||
|
}
|
||
|
|
||
|
public IEnumerable<NewznabDefinition> Enabled()
|
||
|
{
|
||
12 years ago
|
return Query.Where(n => n.Enable);
|
||
12 years ago
|
}
|
||
|
}
|
||
|
}
|