btcpayserver/BTCPayServer/Events/InvoiceEvent.cs

28 lines
688 B
C#
Raw Normal View History

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
{
public InvoiceEvent(Models.InvoiceResponse invoice, int code, string name)
2018-01-18 20:56:55 +09:00
{
Invoice = invoice;
2018-01-18 20:56:55 +09:00
EventCode = code;
Name = name;
}
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()
{
return $"Invoice {Invoice.Id} new event: {Name} ({EventCode})";
2018-01-18 20:56:55 +09:00
}
}
}