public static Telegram FromDo(TelegramDo telegramDo)
 {
     return(new Telegram
     {
         Id = telegramDo.Id,
         ReceivedAt = telegramDo.ReceivedAt,
         Ticks = Bytes2Units(telegramDo.TickBytes).ToArray(),
         TicksPerSecond = telegramDo.TicksPerSecond
     });
 }
Exemple #2
0
 public int Add(TelegramDo telegramDo)
 {
     return(_conn.Insert(telegramDo));
 }