mirror of https://github.com/lidarr/Lidarr
20 lines
805 B
C#
20 lines
805 B
C#
using System.Collections.Generic;
|
|
using FluentValidation.Results;
|
|
|
|
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 definition);
|
|
void Update(TProviderDefinition definition);
|
|
void Delete(int id);
|
|
IEnumerable<TProviderDefinition> GetDefaultDefinitions();
|
|
IEnumerable<TProviderDefinition> GetPresetDefinitions(TProviderDefinition providerDefinition);
|
|
ValidationResult Test(TProviderDefinition definition);
|
|
}
|
|
} |