private void Send(string email) { try { FeedbackSender.Send(email, content, emailTitle, Application.unityVersion, InAudio.CurrentVersion); send = SendingStatus.Send; } catch (Exception) { send = SendingStatus.Error; } }
public static string Translate(this SendingStatus status, Translator translator) { switch (status) { case SendingStatus.Created: return(translator.Get("Enum.SendingStatus.Created", "Created value of the sending status enum", "Created")); case SendingStatus.Sent: return(translator.Get("Enum.SendingStatus.Sent", "Sent value of the sending status enum", "Sent")); case SendingStatus.Failed: return(translator.Get("Enum.SendingStatus.Failed", "Failed value of the sending status enum", "Failed")); default: throw new NotSupportedException(); } }
void FireSendingStatus(SendingStatus status) { _DataSendingEventArgs.Status = status; EDataSendingStatus?.Invoke(this, _DataSendingEventArgs); }
public SendingItem(ToDo schedule, SendingStatus status) { this.ToDoItem = schedule; this.Status = status; }
public SendingItem() { ToDoItem = new ToDo(); Status = SendingStatus.ToBeSent; }
public void MarkAsSent(DateTime sentTime) { Status = SendingStatus.Success; Exception = null; LastAttemptDate = sentTime; }
public void MarkAsFailed(string message, DateTime failedTime) { Status = SendingStatus.Failed; Exception = message; LastAttemptDate = failedTime; }