btcpayserver/BTCPayServer/Services/Notifications/Blobs/JunkNotification.cs
Andrew Camilleri 4d0b402e8b
Allow disabling notifications per user and disabling specific notifications per user (#1991)
* Allow disabling notifications per user and disabling specific notifications per use

closes #1974

* Add disable notifs for all users

* fix term generator for notifications

* sow checkboxes instead of multiselect when js is enabled

* remove js dependency

* fix notif conditions
2020-10-20 13:09:09 +02:00

31 lines
938 B
C#

#if DEBUG
using System.Data;
using BTCPayServer.Contracts;
namespace BTCPayServer.Services.Notifications.Blobs
{
internal class JunkNotification: BaseNotification
{
private const string TYPE = "junk";
internal class Handler : NotificationHandler<JunkNotification>
{
public override string NotificationType => TYPE;
public override (string identifier, string name)[] Meta
{
get
{
return new (string identifier, string name)[] {(TYPE, "Junk")};
}
}
protected override void FillViewModel(JunkNotification notification, NotificationViewModel vm)
{
vm.Body = $"All your junk r belong to us!";
}
}
public override string Identifier => NotificationType;
public override string NotificationType => TYPE;
}
}
#endif