mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Refactoring of Webhooks and Email Rules (#6954)
This commit is contained in:
17
BTCPayServer/Plugins/Webhooks/Views/WebhooksViewModel.cs
Normal file
17
BTCPayServer/Plugins/Webhooks/Views/WebhooksViewModel.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace BTCPayServer.Plugins.Webhooks.Views
|
||||
{
|
||||
public class WebhooksViewModel
|
||||
{
|
||||
public class WebhookViewModel
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Url { get; set; }
|
||||
public bool LastDeliverySuccessful { get; set; } = true;
|
||||
public DateTimeOffset? LastDeliveryTimeStamp { get; set; } = null;
|
||||
public string LastDeliveryErrorMessage { get; set; } = null;
|
||||
}
|
||||
public WebhookViewModel[] Webhooks { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user