Exemplo n.º 1
0
 private static EEMail[] DeleteMails(BigDB bigDb, EEMail[] mail)
 {
     if (mail.Length <= InboxSize)
     {
         return(mail);
     }
     bigDb.DeleteKeys("Mails", mail.Skip(InboxSize).Select(n => n.Key).ToArray());
     return(mail.Take(InboxSize).ToArray());
 }
Exemplo n.º 2
0
 private static EENotification[] DeleteNotifications(BigDB bigDb, EENotification[] eeNotifications)
 {
     if (eeNotifications.Length <= MaxNotifications)
     {
         return(eeNotifications);
     }
     bigDb.DeleteKeys("Notifications", eeNotifications.Skip(MaxNotifications).Select(n => n.Key).ToArray());
     return(eeNotifications.Take(MaxNotifications).ToArray());
 }
Exemplo n.º 3
0
 public static void DeleteInvitations(BigDB bigDb, Invitation[] invites)
 {
     bigDb.DeleteKeys(InvitationsTable, invites.Select(it => it.Key).ToArray());
 }
Exemplo n.º 4
0
 private static void DeleteMail(BigDB bigDb, EEMail mail)
 {
     bigDb.DeleteKeys("Mails", mail.Key);
 }