private bool acceptRant(Dtos.Rant rant) { acceptorTries++; if (db != null && db.IsRead(rant.Id)) { return(false); } else { return(true); } }
//TODO: NEed lastTime? IsRead should be enough? //Check if isRead is stored even if Filter is false private void AddTo(long lastTime, string username, ProfileContentType type, List <Dtos.Rant> rants, List <ViewModels.Rant> added) { foreach (var rant in rants) { if (rant.CreatedTime > lastTime) { if (!history.IsRead(rant.Id)) { ViewModels.Rant r = new ViewModels.Rant(rant); r.UpdateText = MakeMessage(type, username); added.Add(r); } } } }