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