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>
        /// 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. 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 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);
     }
 }