예제 #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());
 }
예제 #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());
 }
예제 #3
0
 public static void DeleteInvitations(BigDB bigDb, Invitation[] invites)
 {
     bigDb.DeleteKeys(InvitationsTable, invites.Select(it => it.Key).ToArray());
 }
예제 #4
0
 private static void DeleteMail(BigDB bigDb, EEMail mail)
 {
     bigDb.DeleteKeys("Mails", mail.Key);
 }