/** * Getting all notebooks within a range from lastNotebookId to lastNotebookId + x * * @lastNotebookId : the last notebook id that was read from the last call * * return a list of notebook if it was found and an empty list otherwise **/ public List <Notebook> getAll(String lastNotebookId = "1") { try { List <Notebook> notebooks = new List <Notebook>(); notebookDAO.findAll(lastNotebookId).ForEach((id) => notebooks.Add(getById(id))); return(notebooks); } catch (Exception e) { Logging.logInfo(true, e.Message); } return(new List <Notebook>()); }