From 4c725e69a8bb96da1f69fc3d958c680b77712f81 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Mon, 4 Mar 2013 22:34:02 -0500 Subject: added swagger api docs --- .../MediaBrowser.Controller.csproj | 1 - .../ScheduledTasks/PeopleValidationTask.cs | 84 ---------------------- 2 files changed, 85 deletions(-) delete mode 100644 MediaBrowser.Controller/ScheduledTasks/PeopleValidationTask.cs (limited to 'MediaBrowser.Controller') diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj index d44f003fed..0fc97b049f 100644 --- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj +++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj @@ -172,7 +172,6 @@ - diff --git a/MediaBrowser.Controller/ScheduledTasks/PeopleValidationTask.cs b/MediaBrowser.Controller/ScheduledTasks/PeopleValidationTask.cs deleted file mode 100644 index 24e0c85428..0000000000 --- a/MediaBrowser.Controller/ScheduledTasks/PeopleValidationTask.cs +++ /dev/null @@ -1,84 +0,0 @@ -using MediaBrowser.Common.ScheduledTasks; -using MediaBrowser.Controller.Library; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace MediaBrowser.Controller.ScheduledTasks -{ - /// - /// Class PeopleValidationTask - /// - public class PeopleValidationTask : IScheduledTask - { - /// - /// The _library manager - /// - private readonly ILibraryManager _libraryManager; - - /// - /// Initializes a new instance of the class. - /// - /// The library manager. - public PeopleValidationTask(ILibraryManager libraryManager) - { - _libraryManager = libraryManager; - } - - /// - /// Creates the triggers that define when the task will run - /// - /// IEnumerable{BaseTaskTrigger}. - public IEnumerable GetDefaultTriggers() - { - return new ITaskTrigger[] - { - new DailyTrigger { TimeOfDay = TimeSpan.FromHours(2) }, - - new IntervalTrigger{ Interval = TimeSpan.FromHours(12)} - }; - } - - /// - /// Returns the task to be executed - /// - /// The cancellation token. - /// The progress. - /// Task. - public Task Execute(CancellationToken cancellationToken, IProgress progress) - { - return _libraryManager.ValidatePeople(cancellationToken, progress); - } - - /// - /// Gets the name of the task - /// - /// The name. - public string Name - { - get { return "Refresh people"; } - } - - /// - /// Gets the description. - /// - /// The description. - public string Description - { - get { return "Updates metadata for actors, artists and directors in your media library."; } - } - - /// - /// Gets the category. - /// - /// The category. - public string Category - { - get - { - return "Library"; - } - } - } -} -- cgit v1.2.3