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