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.
32 lines
982 B
32 lines
982 B
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;
|
|
AddNewArtists = true;
|
|
}
|
|
|
|
public RescanFoldersCommand(List<string> folders, FilterFilesType filter, bool addNewArtists, List<int> artistIds)
|
|
{
|
|
Folders = folders;
|
|
Filter = filter;
|
|
AddNewArtists = addNewArtists;
|
|
ArtistIds = artistIds;
|
|
}
|
|
|
|
public List<string> Folders { get; set; }
|
|
public FilterFilesType Filter { get; set; }
|
|
public bool AddNewArtists { get; set; }
|
|
public List<int> ArtistIds { get; set; }
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
public override bool RequiresDiskAccess => true;
|
|
}
|
|
}
|