Esempio 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);
            }
        }
Esempio 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);
            }
        }
Esempio 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);
        }
Esempio 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);
 }
Esempio 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);
            }
        }
Esempio 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);
     }
 }