public void NotReadyPrompt(WalletValidationCoordinator.ValidationOutcome args) { StopAllCoroutines(); string message = null; switch (args.code) { case WalletValidationCoordinator.ValidationOutcome.Code.TooSoon: BigInteger value = (BigInteger)args.value; message = $"Wait {value.ToString("00")} seconds."; break; case WalletValidationCoordinator.ValidationOutcome.Code.InvalidAddress: message = "Invalid address."; break; case WalletValidationCoordinator.ValidationOutcome.Code.DoesNotQualify: message = "You don't qualify."; break; } StartCoroutine(DisplayPrompt(message, promptDuration)); }
private void TerminateCoroutineExecution(WalletValidationCoordinator.ValidationOutcome outcome) { validationComplete?.Invoke(outcome); }