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
823 B
32 lines
823 B
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";
|
|
}
|
|
}
|