Пример #1
0
        /// <summary>
        /// Obtains a list of all pending scheduled notification messages.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnClickGetScheduledNotifications(object sender, System.EventArgs e)
        {
            string Tag = "ScheduledNotifications";

            try
            {
                List <Dictionary <string, string> > notifications = NotificationController.GetScheduledNotifications(this);

                log.Info(Tag, $"There are {notifications.Count} scheduled notification(s).");
            }
            catch (ApiException exception)
            {
                log.Error(Tag, "Error/Exception: " + exception);
            }
        }
 public List <Dictionary <string, string> > GetScheduledNotifications()
 {
     return(NotificationController.GetScheduledNotifications(Application.Context));
 }