2013-02-23 07:37:23 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2013-03-24 07:16:00 +03:00
|
|
|
using System.Data;
|
2013-02-23 07:37:23 +03:00
|
|
|
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
|
|
|
|
{
|
2013-03-24 07:16:00 +03:00
|
|
|
public NewznabRepository(IDbConnection database) : base(database)
|
2013-02-23 07:37:23 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public IEnumerable<NewznabDefinition> Enabled()
|
|
|
|
{
|
2013-03-24 07:16:00 +03:00
|
|
|
return Where(n => n.Enabled);
|
2013-02-23 07:37:23 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|