2014-07-04 11:09:48 +03:00
|
|
|
using System;
|
|
|
|
using NzbDrone.Core.Datastore;
|
2013-10-01 20:13:40 +03:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.ThingiProvider
|
|
|
|
{
|
|
|
|
public abstract class ProviderDefinition : ModelBase
|
|
|
|
{
|
|
|
|
private IProviderConfig _settings;
|
|
|
|
|
2014-07-04 11:09:48 +03:00
|
|
|
public String Name { get; set; }
|
|
|
|
public String Implementation { get; set; }
|
|
|
|
public String ConfigContract { get; set; }
|
|
|
|
public virtual Boolean Enable { get; set; }
|
2013-10-01 20:13:40 +03:00
|
|
|
|
|
|
|
public IProviderConfig Settings
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return _settings;
|
|
|
|
}
|
|
|
|
set
|
|
|
|
{
|
|
|
|
_settings = value;
|
|
|
|
if (value != null)
|
|
|
|
{
|
|
|
|
ConfigContract = value.GetType().Name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-07-04 11:09:48 +03:00
|
|
|
}
|