private void BtnSent_Click(object sender, EventArgs e) { var status = new MailTaskStatus(); status.GetProcessedEmailTasksForClient(_url, _key, "EI002"); textBox1.Text = JsonConvert.SerializeObject(status.MailTaskList); }
private void BtnStatus_Click(object sender, EventArgs e) { var status = new MailTaskStatus(); status.GetEmailTaskStatus(_url, _taskID, key); string result = $"Processed: {status.Processed}\r\nReceivedTimeStamp:{status.ReceivedTimestamp}\r\nProcessedTimeStamp:{status.ProcessedTimestamp}"; textBox1.Text = result; }