Lidarr/src/NzbDrone.Core/Notifications/NotificationDefinition.cs

21 lines
472 B
C#
Raw Normal View History

2013-05-19 23:17:32 +00:00
using System;
using NzbDrone.Core.ThingiProvider;
2013-05-19 23:17:32 +00:00
namespace NzbDrone.Core.Notifications
{
public class NotificationDefinition : ProviderDefinition
{
public Boolean OnGrab { get; set; }
public Boolean OnDownload { get; set; }
public Boolean OnUpgrade { get; set; }
public override Boolean Enable
{
get
{
return OnGrab || (OnDownload && OnUpgrade);
}
}
}
}