You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/Recyclarr.Core/Notifications/VerbosityStrategies.cs

34 lines
931 B

namespace Recyclarr.Notifications;
public interface IVerbosityStrategy
{
bool ShouldSendInformation();
bool ShouldSendError();
bool ShouldSendWarning();
bool ShouldSendEmpty();
}
public class MinimalVerbosityStrategy : IVerbosityStrategy
{
public bool ShouldSendInformation() => false;
public bool ShouldSendError() => true;
public bool ShouldSendWarning() => true;
public bool ShouldSendEmpty() => false;
}
public class NormalVerbosityStrategy : IVerbosityStrategy
{
public bool ShouldSendInformation() => true;
public bool ShouldSendError() => true;
public bool ShouldSendWarning() => true;
public bool ShouldSendEmpty() => false;
}
public class DetailedVerbosityStrategy : IVerbosityStrategy
{
public bool ShouldSendInformation() => true;
public bool ShouldSendError() => true;
public bool ShouldSendWarning() => true;
public bool ShouldSendEmpty() => true;
}