public SecondPasswordResultMessage(SecondPasswordResultMessage.ProcessType operationType, bool passed, int failCount, int retryLockedSec)
 {
     this.OperationType  = operationType;
     this.Passed         = passed;
     this.FailCount      = failCount;
     this.RetryLockedSec = retryLockedSec;
 }
 public SecondPasswordResultMessage(SecondPasswordResultMessage.ProcessType operationType, bool passed, int failCount, DateTime?retryRestrictedUntil)
 {
     this.OperationType = operationType;
     this.Passed        = passed;
     this.FailCount     = failCount;
     if (retryRestrictedUntil == null || retryRestrictedUntil <= DateTime.UtcNow)
     {
         this.RetryLockedSec = -1;
         return;
     }
     this.RetryLockedSec = (int)(retryRestrictedUntil.Value - DateTime.UtcNow).TotalSeconds;
 }