Esempio n. 1
0
        static void Events_OnNotificationSent(PushSharp.Common.Notification notification)
        {
            try
            {
                bool EliminoNotificacion = BLL_EncuestasMoviles.MngNegocioNotificaciones.EliminaNotificacion(Convert.ToInt32(notification.Tag.ToString().Split('|')[0]), notification.Tag.ToString().Split('|')[1], Convert.ToInt32(notification.Tag.ToString().Split('|')[2]), notification.Tag.ToString().Split('|')[3], Convert.ToInt32(notification.Tag.ToString().Split('|')[4]));

                if (EliminoNotificacion)
                {
                    Console.WriteLine("Notificacion " + notification.ToString().Split('|')[0] + " Eliminada correctamente " + DateTime.Now);
                }
                else
                {
                    Console.WriteLine("ERROR al actualizar status a 3 " + DateTime.Now);
                }
                Console.WriteLine("Enviado a " + notification.Tag.ToString());
                Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString());
            }
            catch
            {
                Console.WriteLine("ERROR al actualizar status a 3 " + DateTime.Now);
            }
            finally
            {
            }
        }
Esempio n. 2
0
 static void Events_OnNotificationSendFailure(PushSharp.Common.Notification notification, Exception notificationFailureException)
 {
     Console.WriteLine("Failure: " + notification.Platform.ToString() + " -> " + notificationFailureException.Message + " -> " + notification.ToString());
 }
Esempio n. 3
0
 static void Events_OnNotificationSent(PushSharp.Common.Notification notification)
 {
     Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString());
 }
Esempio n. 4
0
 static void Events_OnNotificationSent(PushSharp.Common.Notification notification)
 {
     try
     {
         Console.WriteLine("Enviado a " + notification.Tag.ToString());
         Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString());
     }
     catch
     {
     }
 }