Example #1
0
        /// <summary>
        /// Obtains a list of all notification messages.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnClickGetChannels(object sender, System.EventArgs e)
        {
            string Tag = "GetChannels";

            try
            {
                List <NotificationChannel> channels = NotificationController.GetChannels(this);

                log.Info(Tag, $"There are {channels.Count} channel(s).");
            }
            catch (ApiException exception)
            {
                log.Error(Tag, "Error/Exception: " + exception);
            }
        }
 public List <XamarinFormsPushDemo.HMSPush.Model.NotificationChannel> GetChannels()
 {
     return(NotificationController.GetChannels(Application.Context).ToNotificationChannels());
 }