cs-codex-dist-tests/Framework/NethereumWorkflow/BlockUtils/BlockTimeEntry.cs

20 lines
439 B
C#
Raw Permalink Normal View History

2024-03-21 15:26:48 +00:00
namespace NethereumWorkflow.BlockUtils
2023-12-20 09:33:44 +00:00
{
2024-03-21 11:18:04 +00:00
public class BlockTimeEntry
2023-12-20 09:33:44 +00:00
{
2024-03-21 11:18:04 +00:00
public BlockTimeEntry(ulong blockNumber, DateTime utc)
2023-12-20 09:33:44 +00:00
{
2024-03-21 11:18:04 +00:00
BlockNumber = blockNumber;
Utc = utc;
}
2023-12-20 09:33:44 +00:00
2024-03-21 11:18:04 +00:00
public ulong BlockNumber { get; }
public DateTime Utc { get; }
2023-12-20 09:33:44 +00:00
2024-03-21 11:18:04 +00:00
public override string ToString()
{
return $"[{BlockNumber}] @ {Utc.ToString("o")}";
2023-12-20 09:33:44 +00:00
}
}
}