mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00

New: Ability to tag series New: Use tags to control which series use which notification channels
28 lines
657 B
C#
28 lines
657 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using NzbDrone.Core.ThingiProvider;
|
|
|
|
namespace NzbDrone.Core.Notifications
|
|
{
|
|
public class NotificationDefinition : ProviderDefinition
|
|
{
|
|
public NotificationDefinition()
|
|
{
|
|
Tags = new HashSet<Int32>();
|
|
}
|
|
|
|
public Boolean OnGrab { get; set; }
|
|
public Boolean OnDownload { get; set; }
|
|
public Boolean OnUpgrade { get; set; }
|
|
public HashSet<Int32> Tags { get; set; }
|
|
|
|
public override Boolean Enable
|
|
{
|
|
get
|
|
{
|
|
return OnGrab || (OnDownload && OnUpgrade);
|
|
}
|
|
}
|
|
}
|
|
}
|