2013-11-13 20:08:37 +00:00
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.RootFolders
|
|
|
|
|
{
|
|
|
|
|
public interface IRootFolderRepository : IBasicRepository<RootFolder>
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class RootFolderRepository : BasicRepository<RootFolder>, IRootFolderRepository
|
|
|
|
|
{
|
2015-05-03 19:46:21 +00:00
|
|
|
|
public RootFolderRepository(IMainDatabase database, IEventAggregator eventAggregator)
|
2013-11-13 20:08:37 +00:00
|
|
|
|
: base(database, eventAggregator)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-09 06:54:15 +00:00
|
|
|
|
protected override bool PublishModelEvents => true;
|
2020-02-09 19:15:43 +00:00
|
|
|
|
|
|
|
|
|
public new void Delete(int id)
|
|
|
|
|
{
|
|
|
|
|
var model = Get(id);
|
|
|
|
|
base.Delete(id);
|
|
|
|
|
ModelDeleted(model);
|
|
|
|
|
}
|
2013-11-13 20:08:37 +00:00
|
|
|
|
}
|
2020-01-03 12:49:24 +00:00
|
|
|
|
}
|