2018-01-18 20:56:55 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using BTCPayServer.Services.Invoices;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Events
|
|
|
|
|
{
|
|
|
|
|
public class InvoiceEvent
|
|
|
|
|
{
|
2018-06-21 14:15:36 +09:00
|
|
|
|
public InvoiceEvent(Models.InvoiceResponse invoice, int code, string name)
|
2018-01-18 20:56:55 +09:00
|
|
|
|
{
|
2018-06-21 14:15:36 +09:00
|
|
|
|
Invoice = invoice;
|
2018-01-18 20:56:55 +09:00
|
|
|
|
EventCode = code;
|
|
|
|
|
Name = name;
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-21 14:15:36 +09:00
|
|
|
|
public Models.InvoiceResponse Invoice { get; set; }
|
2018-01-18 20:56:55 +09:00
|
|
|
|
public int EventCode { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2018-06-21 14:15:36 +09:00
|
|
|
|
return $"Invoice {Invoice.Id} new event: {Name} ({EventCode})";
|
2018-01-18 20:56:55 +09:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|