2022-03-08 02:03:00 +00:00
|
|
|
using System.Collections.Generic;
|
2024-03-18 23:48:35 +00:00
|
|
|
using NzbDrone.Common.Extensions;
|
2022-03-08 02:03:00 +00:00
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Movies.Commands
|
|
|
|
{
|
|
|
|
public class RefreshCollectionsCommand : Command
|
|
|
|
{
|
|
|
|
public List<int> CollectionIds { get; set; }
|
|
|
|
|
|
|
|
public RefreshCollectionsCommand()
|
|
|
|
{
|
|
|
|
CollectionIds = new List<int>();
|
|
|
|
}
|
|
|
|
|
|
|
|
public RefreshCollectionsCommand(List<int> collectionIds)
|
|
|
|
{
|
|
|
|
CollectionIds = collectionIds;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
|
|
|
2024-03-18 23:48:35 +00:00
|
|
|
public override bool UpdateScheduledTask => CollectionIds.Empty();
|
|
|
|
|
|
|
|
public override bool IsLongRunning => true;
|
|
|
|
|
|
|
|
public override string CompletionMessage => "Completed";
|
2022-03-08 02:03:00 +00:00
|
|
|
}
|
|
|
|
}
|