mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
d3e3c31b0c
* BitcoinSpecificBtcPayNetwork - abstract BTCPayNetwork * some type fixes * fix tests * simplify fetching handler in invoice controller * rename network base and bitcoin classes * abstract serializer to network level * fix serializer when network not provided * fix serializer when network not provided * fix serializer when network not provided * try fixes for isolating pull request
26 lines
702 B
C#
26 lines
702 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class InvoiceNewAddressEvent
|
|
{
|
|
public InvoiceNewAddressEvent(string invoiceId, string address, BTCPayNetworkBase network)
|
|
{
|
|
Address = address;
|
|
InvoiceId = invoiceId;
|
|
Network = network;
|
|
}
|
|
|
|
public string Address { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
public BTCPayNetworkBase Network { get; set; }
|
|
public override string ToString()
|
|
{
|
|
return $"{Network.CryptoCode}: New address {Address} for invoice {InvoiceId}";
|
|
}
|
|
}
|
|
}
|