mirror of
https://github.com/MAGICGrants/btcpayserver-monero-plugin.git
synced 2026-01-09 02:47:53 -05:00
16 lines
546 B
C#
16 lines
546 B
C#
namespace BTCPayServer.Plugins.Monero.RPC
|
|
{
|
|
public class MoneroEvent
|
|
{
|
|
public string BlockHash { get; set; }
|
|
public string TransactionHash { get; set; }
|
|
public string CryptoCode { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return
|
|
$"{CryptoCode}: {(string.IsNullOrEmpty(TransactionHash) ? string.Empty : "Tx Update")}{(string.IsNullOrEmpty(BlockHash) ? string.Empty : "New Block")} ({TransactionHash ?? string.Empty}{BlockHash ?? string.Empty})";
|
|
}
|
|
}
|
|
}
|