Lidarr/src/NzbDrone.Core/MediaFiles/Commands/RescanFoldersCommand.cs

33 lines
1.0 KiB
C#
Raw Normal View History

2020-02-09 19:15:43 +00:00
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;
2020-02-09 19:15:43 +00:00
}
public RescanFoldersCommand(List<string> folders, FilterFilesType filter, bool addNewArtists, List<int> artistIds)
2020-02-09 19:15:43 +00:00
{
Folders = folders;
Filter = filter;
AddNewArtists = addNewArtists;
2020-02-09 19:15:43 +00:00
ArtistIds = artistIds;
}
public List<string> Folders { get; set; }
public FilterFilesType Filter { get; set; }
public bool AddNewArtists { get; set; }
2020-02-09 19:15:43 +00:00
public List<int> ArtistIds { get; set; }
public override bool SendUpdatesToClient => true;
public override bool RequiresDiskAccess => true;
public override bool IsLongRunning => true;
2020-02-09 19:15:43 +00:00
}
}