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.
|
|
|
|
using System;
|
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.ThingiProvider
|
|
|
|
|
{
|
|
|
|
|
public abstract class ProviderDefinition : ModelBase
|
|
|
|
|
{
|
|
|
|
|
private IProviderConfig _settings;
|
|
|
|
|
|
|
|
|
|
public String Name { get; set; }
|
|
|
|
|
public String Implementation { get; set; }
|
|
|
|
|
public String ConfigContract { get; set; }
|
|
|
|
|
public virtual Boolean Enable { get; set; }
|
|
|
|
|
|
|
|
|
|
public IProviderConfig Settings
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _settings;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_settings = value;
|
|
|
|
|
if (value != null)
|
|
|
|
|
{
|
|
|
|
|
ConfigContract = value.GetType().Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|