mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
something!
This commit is contained in:
parent
6a10382e7b
commit
d1a4c7c942
4 changed files with 74 additions and 0 deletions
49
NzbDrone.Core/ThingiProvider/ProviderBase.cs
Normal file
49
NzbDrone.Core/ThingiProvider/ProviderBase.cs
Normal file
|
@ -0,0 +1,49 @@
|
|||
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
|
||||
namespace NzbDrone.Core.ThingiProvider
|
||||
{
|
||||
|
||||
|
||||
public class DownloadProviderRepository : BasicRepository<DownloadProviderModel>
|
||||
{
|
||||
public DownloadProviderRepository(IDatabase database, IEventAggregator eventAggregator)
|
||||
: base(database, eventAggregator)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class DownloadProviderModel : Provider<DownloadProviderConfig>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class DownloadProviderConfig : ProviderSetting
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public abstract class Provider<TSettings> : ModelBase
|
||||
where TSettings : ProviderSetting
|
||||
{
|
||||
public string Implementation { get; set; }
|
||||
public TSettings Config { get; set; }
|
||||
}
|
||||
|
||||
public abstract class ProviderSetting : IEmbeddedDocument
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public abstract class ProviderBase<TSettings> where TSettings : ProviderSetting
|
||||
{
|
||||
public TSettings Settings { get; private set; }
|
||||
|
||||
public void LoadSettings(TSettings setting)
|
||||
{
|
||||
Settings = setting;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue