Beispiel #1
0
        /// <summary>
        /// Send Message
        /// </summary>
        /// <param name="message">Message parameter</param>
        public void SendMessage(IPDMessage message)
        {
            switch (message.MessageType)
            {
            case MessageType.EMAIL: SendEmail(message); break;

            case MessageType.SMS: SendSMS(message); break;

            case MessageType.GCM: SendGCM(message); break;

            case MessageType.FCM: SendFCM(message); break;

            default: break;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Send Email
 /// </summary>
 /// <param name="message"></param>
 private void SendEmail(IPDMessage message)
 {
     EmailNotification.Notify(message.SenderUri, message.ReceiverUri, message.Body, message.Subject, commParams.EmailUserName, commParams.EmailPasword, commParams.EmailServer, commParams.EmailPort, null);
 }
Beispiel #3
0
 /// <summary>
 /// Send SMS Message
 /// </summary>
 /// <param name="message"></param>
 private void SendSMS(IPDMessage message)
 {
     SMSNotification.Notify(message.Sender, message.ReceiverUri, message.Subject, commParams.SMSUserName, commParams.SMSPasword, commParams.SMSKey);
 }
Beispiel #4
0
 /// <summary>
 /// Send GCM Message
 /// </summary>
 /// <param name="message"></param>
 private void SendGCM(IPDMessage message)
 {
     GCMNotification.Notify(message.ReceiverUri, message.SenderUri, message.Subject, commParams.GCMAppID, commParams.GCMSenderID);
 }