using MediaBrowser.Model.Tasks;
using System;
using System.Collections.Generic;
namespace MediaBrowser.Common.ScheduledTasks
{
///
/// Interface IScheduledTaskWorker
///
public interface IScheduledTaskWorker : IDisposable
{
///
/// 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
IEnumerable Triggers { get; set; }
///
/// Gets the unique id.
///
/// The unique id.
Guid Id { get; }
}
}