You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.1 KiB
65 lines
2.1 KiB
using MediaBrowser.Model.FileOrganization;
|
|
using MediaBrowser.Model.Querying;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.FileOrganization
|
|
{
|
|
public interface IFileOrganizationService
|
|
{
|
|
/// <summary>
|
|
/// Processes the new files.
|
|
/// </summary>
|
|
void BeginProcessNewFiles();
|
|
|
|
/// <summary>
|
|
/// Deletes the original file.
|
|
/// </summary>
|
|
/// <param name="resultId">The result identifier.</param>
|
|
/// <returns>Task.</returns>
|
|
Task DeleteOriginalFile(string resultId);
|
|
|
|
/// <summary>
|
|
/// Clears the log.
|
|
/// </summary>
|
|
/// <returns>Task.</returns>
|
|
Task ClearLog();
|
|
|
|
/// <summary>
|
|
/// Performs the organization.
|
|
/// </summary>
|
|
/// <param name="resultId">The result identifier.</param>
|
|
/// <returns>Task.</returns>
|
|
Task PerformOrganization(string resultId);
|
|
|
|
/// <summary>
|
|
/// Performs the episode organization.
|
|
/// </summary>
|
|
/// <param name="request">The request.</param>
|
|
/// <returns>Task.</returns>
|
|
Task PerformEpisodeOrganization(EpisodeFileOrganizationRequest request);
|
|
|
|
/// <summary>
|
|
/// Gets the results.
|
|
/// </summary>
|
|
/// <param name="query">The query.</param>
|
|
/// <returns>IEnumerable{FileOrganizationResult}.</returns>
|
|
QueryResult<FileOrganizationResult> GetResults(FileOrganizationResultQuery query);
|
|
|
|
/// <summary>
|
|
/// Gets the result.
|
|
/// </summary>
|
|
/// <param name="id">The identifier.</param>
|
|
/// <returns>FileOrganizationResult.</returns>
|
|
FileOrganizationResult GetResult(string id);
|
|
|
|
/// <summary>
|
|
/// Saves the result.
|
|
/// </summary>
|
|
/// <param name="result">The result.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>Task.</returns>
|
|
Task SaveResult(FileOrganizationResult result, CancellationToken cancellationToken);
|
|
}
|
|
}
|