Exemplo n.º 1
0
        /// <summary>
        /// SendNotification
        /// </summary>
        public void SendNotification(string action, string gcmToken, string message)
        {
            AndroidGCMPushNotification notification = new AndroidGCMPushNotification();

            if (action == "UR")
            {
                notification.SendNotification(action, "Welcome to ClearTrash! Your REF_CODE is " + message, gcmToken);
            }
            else if (action == "UN")
            {
                notification.SendNotification(action, message, gcmToken);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// SendTopicNotification
        /// </summary>
        public void SendTopicNotification(string action, string topic, string message)
        {
            AndroidGCMPushNotification notification = new AndroidGCMPushNotification();

            if (action == "EN")
            {
                notification.SendTopicNotification(action, "Event Notification: " + message, topic);
            }
            else if (action == "NU")
            {
                notification.SendTopicNotification(action, "Non Complaint User Notification: " + message, topic);
            }
            else if (action == "GN")
            {
                notification.SendTopicNotification(action, "General Notification: " + message, topic);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// SendNotification
        /// </summary>
        public void SendNotification(string gcmToken, string referralCode)
        {
            AndroidGCMPushNotification notification = new AndroidGCMPushNotification();

            notification.SendNotification("Welcome to ClearTrash! Your REF_CODE is " + referralCode, gcmToken);
        }
Exemplo n.º 4
0
 /// <summary>
 /// SendNotification
 /// </summary>
 public void SendNotification(string gcmToken, string referralCode)
 {
     AndroidGCMPushNotification notification = new AndroidGCMPushNotification();
     notification.SendNotification("Welcome to ClearTrash! Your REF_CODE is " + referralCode, gcmToken);
 }
Exemplo n.º 5
0
        /// <summary>
        /// SendTopicNotification
        /// </summary>
        public void SendTopicNotification(string action, string topic, string message)
        {
            AndroidGCMPushNotification notification = new AndroidGCMPushNotification();

            if (action == "EN")
            {
                notification.SendTopicNotification(action, "Event Notification: " + message, topic);
            }
            else if (action == "NU")
            {
                notification.SendTopicNotification(action, "Non Complaint User Notification: " + message, topic);
            }
            else if (action == "GN")
            {
                notification.SendTopicNotification(action, "General Notification: " + message, topic);
            }
        }
Exemplo n.º 6
0
 /// <summary>
 /// SendNotification
 /// </summary>
 public void SendNotification(string action, string gcmToken, string message)
 {
     AndroidGCMPushNotification notification = new AndroidGCMPushNotification();
     
     if (action == "UR")
     {
         notification.SendNotification(action, "Welcome to ClearTrash! Your REF_CODE is " + message, gcmToken);
     }
     else if (action == "UN")
     {
         notification.SendNotification(action, message, gcmToken);
     }
 }