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