mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 00:12:30 +01:00
26 lines
640 B
C#
26 lines
640 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|