mirror of https://github.com/Radarr/Radarr
32 lines
823 B
C#
32 lines
823 B
C#
using System.Collections.Generic;
|
|
using NzbDrone.Common.Extensions;
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
namespace NzbDrone.Core.Movies.Commands
|
|
{
|
|
public class RefreshMovieCommand : Command
|
|
{
|
|
public List<int> MovieIds { get; set; }
|
|
public bool IsNewMovie { get; set; }
|
|
|
|
public RefreshMovieCommand()
|
|
{
|
|
MovieIds = new List<int>();
|
|
}
|
|
|
|
public RefreshMovieCommand(List<int> movieIds, bool isNewMovie = false)
|
|
{
|
|
MovieIds = movieIds;
|
|
IsNewMovie = isNewMovie;
|
|
}
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
|
|
public override bool UpdateScheduledTask => MovieIds.Empty();
|
|
|
|
public override bool IsLongRunning => true;
|
|
|
|
public override string CompletionMessage => "Completed";
|
|
}
|
|
}
|