private void UpdateLastNotifiedIds(ContentType contentType, LinkedList <KidsNoteContent> newContents) { if (newContents.Count > 0) { History.SetLastContentId(contentType, newContents.First().Id); } History.Save(HistoryFilePath()); }
private void UpdateLastNotifiedIds(Dictionary <ContentType, LinkedList <KidsNoteContent> > newContents) { foreach (var each in newContents) { if (newContents.Count > 0) { History.SetLastContentId(each.Key, each.Value.First().Id); } } History.Save(HistoryFilePath()); }