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.
26 lines
640 B
26 lines
640 B
using System;
|
|
using System.Collections.Generic;
|
|
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(IObjectDatabase objectDatabase) : base(objectDatabase)
|
|
{
|
|
}
|
|
|
|
public IEnumerable<NewznabDefinition> Enabled()
|
|
{
|
|
return Queryable.Where(n => n.Enabled);
|
|
}
|
|
}
|
|
}
|