mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Moved Jobs to their own folder.
This commit is contained in:
parent
cc8c70d7f5
commit
fabc4c84bd
52 changed files with 124 additions and 132 deletions
32
NzbDrone.Core/Jobs/IJob.cs
Normal file
32
NzbDrone.Core/Jobs/IJob.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
using System.Linq;
|
||||
using NzbDrone.Core.Model.Notification;
|
||||
|
||||
namespace NzbDrone.Core.Jobs
|
||||
{
|
||||
public interface IJob
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of the timer.
|
||||
/// This is the name that will be visible in all UI elements
|
||||
/// </summary>\\\
|
||||
string Name { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Default Interval that this job should run at. In seconds.
|
||||
/// </summary>
|
||||
/// <remarks>Setting this value to 0 means the job will not be
|
||||
/// executed by the schedule and is only triggered manually.</remarks>
|
||||
int DefaultInterval { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Starts the job
|
||||
/// </summary>
|
||||
/// <param name="notification">Notification object that is passed in by JobProvider.
|
||||
/// this object should be used to update the progress on the UI</param>
|
||||
/// <param name="targetId">The that should be used to limit the target of this job</param>
|
||||
/// /// <param name="secondaryTargetId">The that should be used to limit the target of this job</param>
|
||||
void Start(ProgressNotification notification, int targetId, int secondaryTargetId);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue