#nullable disable
using System;
using MediaBrowser.Model.Events;
namespace MediaBrowser.Model.Tasks
{
///
/// Interface IScheduledTaskWorker.
///
public interface IScheduledTaskWorker : IDisposable
{
///
/// Occurs when [task progress].
///
event EventHandler> TaskProgress;
///
/// Gets or sets the scheduled task.
///
/// The scheduled task.
IScheduledTask ScheduledTask { get; }
///
/// Gets the last execution result.
///
/// The last execution result.
TaskResult LastExecutionResult { get; }
///
/// Gets the name.
///
/// The name.
string Name { get; }
///
/// Gets the description.
///
/// The description.
string Description { get; }
///
/// Gets the category.
///
/// The category.
string Category { get; }
///
/// Gets the state.
///
/// The state.
TaskState State { get; }
///
/// Gets the current progress.
///
/// The current progress.
double? CurrentProgress { get; }
///
/// Gets the triggers that define when the task will run.
///
/// The triggers.
/// value
TaskTriggerInfo[] Triggers { get; set; }
///
/// Gets the unique id.
///
/// The unique id.
string Id { get; }
///
/// Reloads the trigger events.
///
void ReloadTriggerEvents();
}
}