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.
34 lines
809 B
34 lines
809 B
using System.Linq;
|
|
using System;
|
|
using NLog;
|
|
using NzbDrone.Core.Model.Notification;
|
|
using NzbDrone.Core.Providers;
|
|
using NzbDrone.Core.Providers.Converting;
|
|
|
|
namespace NzbDrone.Core.Jobs
|
|
{
|
|
public class EmptyRecycleBinJob : IJob
|
|
{
|
|
private readonly RecycleBinProvider _recycleBinProvider;
|
|
|
|
public EmptyRecycleBinJob(RecycleBinProvider recycleBinProvider)
|
|
{
|
|
_recycleBinProvider = recycleBinProvider;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return "Empty Recycle Bin"; }
|
|
}
|
|
|
|
public TimeSpan DefaultInterval
|
|
{
|
|
get { return TimeSpan.FromTicks(0); }
|
|
}
|
|
|
|
public void Start(ProgressNotification notification, dynamic options)
|
|
{
|
|
_recycleBinProvider.Empty();
|
|
}
|
|
}
|
|
} |