parent
135251ec31
commit
aa6c8f493e
@ -1,24 +1,27 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Movies.Commands
|
namespace NzbDrone.Core.Movies.Commands
|
||||||
{
|
{
|
||||||
public class RefreshMovieCommand : Command
|
public class RefreshMovieCommand : Command
|
||||||
{
|
{
|
||||||
public int? MovieId { get; set; }
|
public List<int> MovieIds { get; set; }
|
||||||
public bool IsNewMovie { get; set; }
|
public bool IsNewMovie { get; set; }
|
||||||
|
|
||||||
public RefreshMovieCommand()
|
public RefreshMovieCommand()
|
||||||
{
|
{
|
||||||
|
MovieIds = new List<int>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public RefreshMovieCommand(int? movieId, bool isNewMovie = false)
|
public RefreshMovieCommand(List<int> movieIds, bool isNewMovie = false)
|
||||||
{
|
{
|
||||||
MovieId = movieId;
|
MovieIds = movieIds;
|
||||||
IsNewMovie = isNewMovie;
|
IsNewMovie = isNewMovie;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool SendUpdatesToClient => true;
|
public override bool SendUpdatesToClient => true;
|
||||||
|
|
||||||
public override bool UpdateScheduledTask => !MovieId.HasValue;
|
public override bool UpdateScheduledTask => !MovieIds.Any();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue