示例#1
0
        /// <summary>
        /// Sends a com.esendex.sdk.messaging.SmsMessage instance and returns a com.esendex.sdk.messaging.MessagingResult instance.
        /// </summary>
        /// <param name="message">A com.esendex.sdk.messaging.SmsMessage instance that contains the SMS message.</param>
        /// <returns>A com.esendex.sdk.messaging.MessagingResult instance that contains the message batch Id.</returns>
        /// <exception cref="System.Net.WebException"></exception>
        public MessagingResult SendMessage(SmsMessage message)
        {
            var messages = new SmsMessageCollection(message);

            return(SendMessages <SmsMessageCollection>(messages));
        }
示例#2
0
 /// <summary>
 /// Sends a com.esendex.sdk.messaging.SmsMessageCollection instance and returns a com.esendex.sdk.messaging.MessagingResult instance.
 /// </summary>
 /// <param name="messages">A com.esendex.sdk.messaging.SmsMessageCollection instance that contains an SMS message collection.</param>
 /// <returns>A com.esendex.sdk.messaging.MessagingResult instance that contains the message batch Id.</returns>
 /// <exception cref="System.Net.WebException"></exception>
 public MessagingResult SendMessages(SmsMessageCollection messages)
 {
     return(SendMessages <SmsMessageCollection>(messages));
 }
示例#3
0
        /// <summary>
        /// Sends a com.esendex.sdk.messaging.SmsMessageCollection instance scheduled at a System.DateTime and returns a com.esendex.sdk.messaging.MessagingResult instance.
        /// </summary>
        /// <param name="messages">A com.esendex.sdk.messaging.SmsMessageCollection instance that contains a SMS message collection.</param>
        /// <param name="sendAt">A System.DateTime instance that contains the date and time at which the messages should be sent.</param>
        /// <returns>A com.esendex.sdk.messaging.MessagingResult instance that contains the message batch Id.</returns>
        /// <exception cref="System.Net.WebException"></exception>
        public MessagingResult SendScheduledMessages(SmsMessageCollection messages, DateTime sendAt)
        {
            messages.SendAt = sendAt;

            return(SendMessages <SmsMessageCollection>(messages));
        }