Lidarr/src/NzbDrone.Core/ThingiProvider/IProviderFactory.cs

19 lines
718 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2013-10-01 17:13:40 +00:00
namespace NzbDrone.Core.ThingiProvider
{
public interface IProviderFactory<TProvider, TProviderDefinition>
where TProviderDefinition : ProviderDefinition, new()
where TProvider : IProvider
{
List<TProviderDefinition> All();
List<TProvider> GetAvailableProviders();
TProviderDefinition Get(int id);
TProviderDefinition Create(TProviderDefinition indexer);
void Update(TProviderDefinition indexer);
void Delete(int id);
IEnumerable<TProviderDefinition> GetDefaultDefinitions();
IEnumerable<TProviderDefinition> GetPresetDefinitions(TProviderDefinition providerDefinition);
2013-10-01 17:13:40 +00:00
}
}