build notificaiton method to get content for user and time range
fixed merge conflict, added test