/// <summary> /// Invoke Common Error message /// </summary> /// <param name="errorMessage">Error message content</param> /// <param name="title">Title of the event message</param> /// <returns></returns> private async Task InvokeErrorEvent(string errorMessage, string title = "Error") { NewEventInfo?.Invoke(this, await EventFactory.GetEvent(EventType.Error, title, errorMessage, Address, string.Empty, 100)); }
/// <summary> /// Invoke Error message because account is locked /// </summary> /// <param name="title">Title of the event message</param> /// <returns></returns> private async Task InvokeAccountLockedEvent(string title = "Cannot send transaction") { NewEventInfo?.Invoke(this, await EventFactory.GetEvent(EventType.Error, title, "Account is Locked. Please unlock it in account page.", Address, string.Empty, 100)); }
/// <summary> /// Invoke Error message which occured during sending of the transaction /// </summary> /// <param name="errorMessage">Error message content</param> /// <param name="title">Title of the event message</param> /// <returns></returns> private async Task InvokeErrorDuringSendEvent(string errorMessage, string title = "Cannot send transaction") { NewEventInfo?.Invoke(this, await EventFactory.GetEvent(EventType.Error, title, errorMessage, Address, string.Empty, 100)); }
/// <summary> /// Invoke Success message info event /// </summary> /// <param name="txid">new tx id hash</param> /// <param name="title">Title of the event message</param> /// <returns></returns> private async Task InvokeSendPaymentSuccessEvent(string txid, string title = "Neblio Payment Sent") { NewEventInfo?.Invoke(this, await EventFactory.GetEvent(EventType.Info, title, $"Successfull send. Please wait a while for enough confirmations.", Address, txid, 100)); }