mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-02 13:33:07 +00:00
24 lines
608 B
C#
24 lines
608 B
C#
using Utils;
|
|
|
|
namespace CodexContractsPlugin.ChainMonitor
|
|
{
|
|
public class ProofPeriod
|
|
{
|
|
public ProofPeriod(ulong periodNumber, DateTime startUtc, DateTime endUtc)
|
|
{
|
|
PeriodNumber = periodNumber;
|
|
StartUtc = startUtc;
|
|
EndUtc = endUtc;
|
|
}
|
|
|
|
public ulong PeriodNumber { get; }
|
|
public DateTime StartUtc { get; }
|
|
public DateTime EndUtc { get; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{PeriodNumber} - {Time.FormatTimestamp(StartUtc)} -> {Time.FormatTimestamp(EndUtc)}";
|
|
}
|
|
}
|
|
}
|