2013-05-19 23:17:32 +00:00
|
|
|
|
using System;
|
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
|
|
|
|
{
|
|
|
|
|
public Boolean OnGrab { get; set; }
|
|
|
|
|
public Boolean OnDownload { get; set; }
|
2014-02-11 01:09:31 +00:00
|
|
|
|
public Boolean OnUpgrade { get; set; }
|
2014-07-04 08:09:48 +00:00
|
|
|
|
|
|
|
|
|
public override Boolean Enable
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2014-09-13 00:12:33 +00:00
|
|
|
|
return OnGrab || (OnDownload && OnUpgrade);
|
2014-07-04 08:09:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2013-09-21 06:39:26 +00:00
|
|
|
|
}
|
2014-07-04 08:09:48 +00:00
|
|
|
|
}
|