mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
93ba5ade9e
Co-Authored-By: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com>
32 lines
982 B
C#
32 lines
982 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
namespace NzbDrone.Core.MediaFiles.Commands
|
|
{
|
|
public class RescanFoldersCommand : Command
|
|
{
|
|
public RescanFoldersCommand()
|
|
{
|
|
// These are the settings used in the scheduled task
|
|
Filter = FilterFilesType.Known;
|
|
AddNewAuthors = true;
|
|
}
|
|
|
|
public RescanFoldersCommand(List<string> folders, FilterFilesType filter, bool addNewAuthors, List<int> authorIds)
|
|
{
|
|
Folders = folders;
|
|
Filter = filter;
|
|
AddNewAuthors = addNewAuthors;
|
|
AuthorIds = authorIds;
|
|
}
|
|
|
|
public List<string> Folders { get; set; }
|
|
public FilterFilesType Filter { get; set; }
|
|
public bool AddNewAuthors { get; set; }
|
|
public List<int> AuthorIds { get; set; }
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
public override bool RequiresDiskAccess => true;
|
|
}
|
|
}
|