mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Fixed: Backup API improvements
This commit is contained in:
parent
967839154c
commit
91d8fd4ed5
1 changed files with 13 additions and 2 deletions
|
@ -1,10 +1,21 @@
|
||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Backup
|
namespace NzbDrone.Core.Backup
|
||||||
{
|
{
|
||||||
public class BackupCommand : Command
|
public class BackupCommand : Command
|
||||||
{
|
{
|
||||||
public BackupType Type { get; set; }
|
public BackupType Type
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (Trigger == CommandTrigger.Scheduled)
|
||||||
|
{
|
||||||
|
return BackupType.Scheduled;
|
||||||
|
}
|
||||||
|
|
||||||
|
return BackupType.Manual;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override bool SendUpdatesToClient => true;
|
public override bool SendUpdatesToClient => true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue