2013-09-21 06:39:26 +00:00
|
|
|
using NzbDrone.Core.ThingiProvider;
|
2013-05-19 23:17:32 +00:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Notifications
|
|
|
|
{
|
2013-10-12 18:44:40 +00:00
|
|
|
public class NotificationDefinition : ProviderDefinition
|
2013-09-21 06:39:26 +00:00
|
|
|
{
|
2015-05-20 23:22:10 +00:00
|
|
|
public bool OnGrab { get; set; }
|
2019-03-22 00:47:54 +00:00
|
|
|
public bool OnReleaseImport { get; set; }
|
2015-05-20 23:22:10 +00:00
|
|
|
public bool OnUpgrade { get; set; }
|
|
|
|
public bool OnRename { get; set; }
|
2019-03-22 00:47:54 +00:00
|
|
|
public bool OnHealthIssue { get; set; }
|
|
|
|
public bool OnDownloadFailure { get; set; }
|
|
|
|
public bool OnImportFailure { get; set; }
|
|
|
|
public bool OnTrackRetag { get; set; }
|
2021-12-21 05:12:12 +00:00
|
|
|
public bool OnApplicationUpdate { get; set; }
|
2015-05-20 23:22:10 +00:00
|
|
|
public bool SupportsOnGrab { get; set; }
|
2019-03-22 00:47:54 +00:00
|
|
|
public bool SupportsOnReleaseImport { get; set; }
|
2015-05-20 23:22:10 +00:00
|
|
|
public bool SupportsOnUpgrade { get; set; }
|
|
|
|
public bool SupportsOnRename { get; set; }
|
2019-03-22 00:47:54 +00:00
|
|
|
public bool SupportsOnHealthIssue { get; set; }
|
|
|
|
public bool IncludeHealthWarnings { get; set; }
|
|
|
|
public bool SupportsOnDownloadFailure { get; set; }
|
|
|
|
public bool SupportsOnImportFailure { get; set; }
|
|
|
|
public bool SupportsOnTrackRetag { get; set; }
|
2021-12-21 05:12:12 +00:00
|
|
|
public bool SupportsOnApplicationUpdate { get; set; }
|
2014-07-04 08:09:48 +00:00
|
|
|
|
2021-12-21 05:12:12 +00:00
|
|
|
public override bool Enable => OnGrab || OnReleaseImport || (OnReleaseImport && OnUpgrade) || OnHealthIssue || OnDownloadFailure || OnImportFailure || OnTrackRetag || OnApplicationUpdate;
|
2013-09-21 06:39:26 +00:00
|
|
|
}
|
2014-07-04 08:09:48 +00:00
|
|
|
}
|