using System;
namespace MediaBrowser.Model.Tasks
{
    /// 
    /// Class containing event arguments for task completion.
    /// 
    public class TaskCompletionEventArgs : EventArgs
    {
        /// 
        /// Initializes a new instance of the  class.
        /// 
        /// Instance of the  interface.
        /// The task result.
        public TaskCompletionEventArgs(IScheduledTaskWorker task, TaskResult result)
        {
            Task = task;
            Result = result;
        }
        /// 
        /// Gets the task.
        /// 
        /// The task.
        public IScheduledTaskWorker Task { get; }
        /// 
        /// Gets the result.
        /// 
        /// The result.
        public TaskResult Result { get; }
    }
}