Example #1
0
        /// <summary>
        /// Deletes a notification channel with the given ID.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnClickDeleteChannel(object sender, System.EventArgs e)
        {
            string Tag = "DeleteChannel";

            try
            {
                NotificationController.DeleteChannel(this, CoreConstants.NotificationChannelId + 49);

                log.Info(Tag, "Success");
            }
            catch (ApiException exception)
            {
                log.Error(Tag, "Error/Exception: " + exception);
            }
        }
 public void DeleteChannel(string channelId)
 {
     NotificationController.DeleteChannel(Application.Context, channelId);
 }