2013-05-19 23:17:32 +00:00
|
|
|
|
using System;
|
2014-09-10 00:02:55 +00:00
|
|
|
|
using System.Collections.Generic;
|
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
|
|
|
|
{
|
2014-09-10 00:02:55 +00:00
|
|
|
|
public NotificationDefinition()
|
|
|
|
|
{
|
|
|
|
|
Tags = new HashSet<Int32>();
|
|
|
|
|
}
|
|
|
|
|
|
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-09-10 00:02:55 +00:00
|
|
|
|
public HashSet<Int32> Tags { get; set; }
|
2014-07-04 08:09:48 +00:00
|
|
|
|
|
|
|
|
|
public override Boolean Enable
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2015-03-31 20:02:16 +00:00
|
|
|
|
return OnGrab || OnDownload || (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
|
|
|
|
}
|