private void InformCaregivers(string enduserURI, string type, string severity, string msg, string desc) { Console.WriteLine("[Reminder handler] Informing caregiver: " + enduserURI + " of: " + msg); var caregivers = storeAPI.GetCaregivers(enduserURI); foreach (string caregiverURIPath in caregivers) { int caregiverID = GetIdFromURI(caregiverURIPath); storeAPI.PushJournalEntry(caregiverURIPath, type, severity, msg, desc); insertionAPI.InsertPushNotification(msg, caregiverID); } }