/// <summary>
 /// Processes the message that was received from the remote user.
 /// </summary>
 /// <param name="action">The action that contains the configuration for this component.</param>
 /// <param name="message">The message that was received by Rock.</param>
 /// <param name="errorMessage">If there is a problem processing, this should be set</param>
 /// <returns>An SmsMessage that will be sent as the response or null if no response should be sent.</returns>
 public override SmsMessage ProcessMessage(SmsActionCache action, SmsMessage message, out string errorMessage)
 {
     new Rock.Communication.Medium.Sms().ProcessResponse(message.ToNumber, message.FromNumber, message.Message, message.Attachments, out errorMessage);
     return(null);
 }
Example #2
0
 /// <summary>
 /// Processes the message that was received from the remote user.
 /// </summary>
 /// <param name="action">The action that contains the configuration for this component.</param>
 /// <param name="message">The message that was received by Rock.</param>
 /// <param name="errorMessage">If there is a problem processing, this should be set</param>
 /// <returns>An SmsMessage that will be sent as the response or null if no response should be sent.</returns>
 public abstract SmsMessage ProcessMessage( SmsActionCache action, SmsMessage message, out string errorMessage );