public MessageStatusesDto(MessageStatuses messageStatus) { Id = Guid.NewGuid().ToString(); MessageId = messageStatus.MessageId; Recepient = messageStatus.Recepient; DeliverySatus = messageStatus.DeliverySatus; }
public void CreateRecord(MessageStatuses record) { _dbService.Invoke((db, records) => { var dto = new MessageStatusesDto(record); records.Insert(dto); }); }
public static string GetStatusString(MessageStatuses status) { string stat = string.Empty; if (status == MessageStatuses.Sent) { stat = "✓"; } else if (status == MessageStatuses.Delivered) { stat = "✓✓"; } return(stat); }