mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
18 lines
550 B
C#
18 lines
550 B
C#
using BTCPayServer.Payments;
|
|
using NBXplorer.Models;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class NewOnChainTransactionEvent
|
|
{
|
|
public NewTransactionEvent NewTransactionEvent { get; set; }
|
|
public PaymentMethodId PaymentMethodId { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
var state = NewTransactionEvent.BlockId == null ? "Unconfirmed" : "Confirmed";
|
|
return $"{PaymentMethodId}: New transaction {NewTransactionEvent.TransactionData.TransactionHash} ({state})";
|
|
}
|
|
}
|
|
}
|