1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-29 11:16:19 +00:00
Sonarr/NzbDrone.Core/Jobs/Implementations/EmptyRecycleBinJob.cs

32 lines
768 B
C#
Raw Normal View History

using System;
2013-03-05 05:37:33 +00:00
using System.Linq;
using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Providers;
2013-03-05 05:37:33 +00:00
namespace NzbDrone.Core.Jobs.Implementations
{
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); }
}
2012-09-10 19:04:17 +00:00
public void Start(ProgressNotification notification, dynamic options)
{
_recycleBinProvider.Empty();
}
}
}