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.
Lidarr/src/NzbDrone.Core/Backup/BackupCommand.cs

32 lines
653 B

using NzbDrone.Core.Messaging.Commands;
namespace NzbDrone.Core.Backup
{
public class BackupCommand : Command
{
public BackupType Type
{
get
{
if (Trigger == CommandTrigger.Scheduled)
{
return BackupType.Scheduled;
}
return BackupType.Manual;
}
}
public override bool SendUpdatesToClient => true;
public override bool UpdateScheduledTask => Type == BackupType.Scheduled;
}
public enum BackupType
{
Scheduled = 0,
Manual = 1,
Update = 2
}
}