mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-28 16:58:00 +01:00
This adds a test notif only available in debug mode + endpoint `/Notifications/GenerateJunk` that generates x amount of notifications.
19 lines
522 B
C#
19 lines
522 B
C#
#if DEBUG
|
|
using BTCPayServer.Models.NotificationViewModels;
|
|
|
|
namespace BTCPayServer.Services.Notifications.Blobs
|
|
{
|
|
internal class JunkNotification
|
|
{
|
|
internal class Handler : NotificationHandler<JunkNotification>
|
|
{
|
|
public override string NotificationType => "junk";
|
|
|
|
protected override void FillViewModel(JunkNotification notification, NotificationViewModel vm)
|
|
{
|
|
vm.Body = $"All your junk r belong to us!";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|