mirror of https://github.com/Sonarr/Sonarr
21 lines
490 B
C#
21 lines
490 B
C#
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
namespace NzbDrone.Core.Backup
|
|
{
|
|
public class BackupCommand : Command
|
|
{
|
|
public BackupType Type => Trigger == CommandTrigger.Scheduled ? BackupType.Scheduled : BackupType.Manual;
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
|
|
public override bool UpdateScheduledTask => Type == BackupType.Scheduled;
|
|
}
|
|
|
|
public enum BackupType
|
|
{
|
|
Scheduled = 0,
|
|
Manual = 1,
|
|
Update = 2
|
|
}
|
|
}
|