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>();
|
|
|
|
|
}
|
|
|
|
|
|
2015-05-20 23:22:10 +00:00
|
|
|
|
public bool OnGrab { get; set; }
|
|
|
|
|
public bool OnDownload { get; set; }
|
|
|
|
|
public bool OnUpgrade { get; set; }
|
|
|
|
|
public bool OnRename { get; set; }
|
|
|
|
|
public bool SupportsOnGrab { get; set; }
|
|
|
|
|
public bool SupportsOnDownload { get; set; }
|
|
|
|
|
public bool SupportsOnUpgrade { get; set; }
|
|
|
|
|
public bool SupportsOnRename { get; set; }
|
|
|
|
|
public HashSet<int> Tags { get; set; }
|
2014-07-04 08:09:48 +00:00
|
|
|
|
|
2015-05-20 23:22:10 +00:00
|
|
|
|
public override bool Enable
|
2014-07-04 08:09:48 +00:00
|
|
|
|
{
|
|
|
|
|
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
|
|
|
|
}
|