2015-04-25 16:02:17 +00:00
|
|
|
|
using NzbDrone.Core.Datastore;
|
2013-10-01 17:13:40 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.ThingiProvider
|
|
|
|
|
{
|
|
|
|
|
public abstract class ProviderDefinition : ModelBase
|
|
|
|
|
{
|
|
|
|
|
private IProviderConfig _settings;
|
|
|
|
|
|
2015-04-25 16:02:17 +00:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string ImplementationName { get; set; }
|
|
|
|
|
public string Implementation { get; set; }
|
|
|
|
|
public string ConfigContract { get; set; }
|
|
|
|
|
public virtual bool Enable { get; set; }
|
2013-10-01 17:13:40 +00:00
|
|
|
|
|
|
|
|
|
public IProviderConfig Settings
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _settings;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_settings = value;
|
|
|
|
|
if (value != null)
|
|
|
|
|
{
|
|
|
|
|
ConfigContract = value.GetType().Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-07-04 08:09:48 +00:00
|
|
|
|
}
|