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.
24 lines
1.1 KiB
24 lines
1.1 KiB
using System.Collections.Generic;
|
|
using FluentValidation.Results;
|
|
using System;
|
|
|
|
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);
|
|
TProviderDefinition GetProviderCharacteristics(TProvider provider, TProviderDefinition definition);
|
|
TProvider GetInstance(TProviderDefinition definition);
|
|
ValidationResult Test(TProviderDefinition definition);
|
|
object ConnectData(TProviderDefinition definition, string stage, IDictionary<string, object> query );
|
|
}
|
|
} |