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