|
|
|
@ -9,10 +9,13 @@ namespace Sonarr.Api.V3.Notifications
|
|
|
|
|
public bool OnDownload { get; set; }
|
|
|
|
|
public bool OnUpgrade { get; set; }
|
|
|
|
|
public bool OnRename { get; set; }
|
|
|
|
|
public bool OnHealthIssue { get; set; }
|
|
|
|
|
public bool SupportsOnGrab { get; set; }
|
|
|
|
|
public bool SupportsOnDownload { get; set; }
|
|
|
|
|
public bool SupportsOnUpgrade { get; set; }
|
|
|
|
|
public bool SupportsOnRename { get; set; }
|
|
|
|
|
public bool SupportsOnHealthIssue { get; set; }
|
|
|
|
|
public bool IncludeHealthWarnings { get; set; }
|
|
|
|
|
public string TestCommand { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -28,10 +31,13 @@ namespace Sonarr.Api.V3.Notifications
|
|
|
|
|
resource.OnDownload = definition.OnDownload;
|
|
|
|
|
resource.OnUpgrade = definition.OnUpgrade;
|
|
|
|
|
resource.OnRename = definition.OnRename;
|
|
|
|
|
resource.OnHealthIssue = definition.OnHealthIssue;
|
|
|
|
|
resource.SupportsOnGrab = definition.SupportsOnGrab;
|
|
|
|
|
resource.SupportsOnDownload = definition.SupportsOnDownload;
|
|
|
|
|
resource.SupportsOnUpgrade = definition.SupportsOnUpgrade;
|
|
|
|
|
resource.SupportsOnRename = definition.SupportsOnRename;
|
|
|
|
|
resource.SupportsOnHealthIssue = definition.SupportsOnHealthIssue;
|
|
|
|
|
resource.IncludeHealthWarnings = definition.IncludeHealthWarnings;
|
|
|
|
|
|
|
|
|
|
return resource;
|
|
|
|
|
}
|
|
|
|
@ -46,10 +52,13 @@ namespace Sonarr.Api.V3.Notifications
|
|
|
|
|
definition.OnDownload = resource.OnDownload;
|
|
|
|
|
definition.OnUpgrade = resource.OnUpgrade;
|
|
|
|
|
definition.OnRename = resource.OnRename;
|
|
|
|
|
definition.OnHealthIssue = resource.OnHealthIssue;
|
|
|
|
|
definition.SupportsOnGrab = resource.SupportsOnGrab;
|
|
|
|
|
definition.SupportsOnDownload = resource.SupportsOnDownload;
|
|
|
|
|
definition.SupportsOnUpgrade = resource.SupportsOnUpgrade;
|
|
|
|
|
definition.SupportsOnRename = resource.SupportsOnRename;
|
|
|
|
|
definition.SupportsOnHealthIssue = resource.SupportsOnHealthIssue;
|
|
|
|
|
definition.IncludeHealthWarnings = resource.IncludeHealthWarnings;
|
|
|
|
|
|
|
|
|
|
return definition;
|
|
|
|
|
}
|
|
|
|
|