Пример #1
0
        /// <summary>
        /// Send an SMS to the phone number specified
        /// </summary>
        /// <param name="phoneNumber">Phone number to send to</param>
        /// <param name="message">Message to send</param>
        public bool Sms(string phoneNumber, string message)
        {
            if (!Allow())
            {
                return(false);
            }

            var sms = new NotificationSms(phoneNumber, message);

            Messages.Enqueue(sms);

            return(true);
        }
Пример #2
0
        /// <summary>
        /// Send an SMS to the phone number specified
        /// </summary>
        /// <param name="phoneNumber">Phone number to send to</param>
        /// <param name="message">Message to send</param>
        public bool Sms(string phoneNumber, string message)
        {
            if (!_liveMode)
            {
                return(false);
            }
            var allow = Allow();

            if (allow)
            {
                var sms = new NotificationSms(phoneNumber, message);
                Messages.Enqueue(sms);
            }
            return(allow);
        }
Пример #3
0
 /// <summary>
 /// Send an SMS to the phone number specified
 /// </summary>
 /// <param name="phoneNumber">Phone number to send to</param>
 /// <param name="message">Message to send</param>
 public bool Sms(string phoneNumber, string message)
 {
     if (!_liveMode) return false;
     var allow = Allow();
     if (allow)
     {
         var sms = new NotificationSms(phoneNumber, message);
         Messages.Enqueue(sms);
     }
     return allow;
 }
Пример #4
0
 /// <summary>
 /// Send a rate limited SMS notification triggered duing live trading from a user algorithm.
 /// </summary>
 /// <param name="notification"></param>
 public void Sms(NotificationSms notification)
 {
     //
 }