2018-02-17 01:34:40 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Events
|
|
|
|
|
{
|
|
|
|
|
public class InvoiceNewAddressEvent
|
|
|
|
|
{
|
2019-05-29 09:43:50 +00:00
|
|
|
|
public InvoiceNewAddressEvent(string invoiceId, string address, BTCPayNetworkBase network)
|
2018-02-17 01:34:40 +09:00
|
|
|
|
{
|
|
|
|
|
Address = address;
|
|
|
|
|
InvoiceId = invoiceId;
|
|
|
|
|
Network = network;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Address { get; set; }
|
|
|
|
|
public string InvoiceId { get; set; }
|
2019-05-29 09:43:50 +00:00
|
|
|
|
public BTCPayNetworkBase Network { get; set; }
|
2018-02-17 01:34:40 +09:00
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return $"{Network.CryptoCode}: New address {Address} for invoice {InvoiceId}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|