コード例 #1
0
 public MessageStatusesDto(MessageStatuses messageStatus)
 {
     Id            = Guid.NewGuid().ToString();
     MessageId     = messageStatus.MessageId;
     Recepient     = messageStatus.Recepient;
     DeliverySatus = messageStatus.DeliverySatus;
 }
コード例 #2
0
        public void CreateRecord(MessageStatuses record)
        {
            _dbService.Invoke((db, records) =>
            {
                var dto = new MessageStatusesDto(record);

                records.Insert(dto);
            });
        }
コード例 #3
0
        public static string GetStatusString(MessageStatuses status)
        {
            string stat = string.Empty;

            if (status == MessageStatuses.Sent)
            {
                stat = "✓";
            }
            else if (status == MessageStatuses.Delivered)
            {
                stat = "✓✓";
            }
            return(stat);
        }