public object BulkSMS(string[] nums, string msg, int enAr) { // collect all sending reports var isSent = new List <string>(); // loop all messages for (int i = 0; i < nums.Length; i++) { // split mobile and client name string[] num = nums[i].Split('|'); // start sending the message to one or more mobile number // phone message var sent = SMSManager.SMSSend(num[0], msg, enAr); // register sending report for every sms/client name. isSent.Add(sent.Result + "|" + num[1]); } // return all reports return(isSent); }
public static object BulkSMS(string[] messages) { // collect all sending reports List <string> isSent = new List <string>(); // loop all messages for (int i = 0; i < messages.Length; i++) { // split mobile and message string[] msg = messages[i].Split('|'); // start sending the message to one or more mobile number // phone message Task <string> sent = SMSManager.SMSSend(msg[0], msg[1]); // register sending report for every sms. isSent.Add(sent.Result + "|" + msg[2]); } // return all reports return(isSent); }
public static object SendSMS(string phones, string message) { Task <string> task = SMSManager.SMSSend(phones, message); return(task); }
public object SendSMS(string phones, string message) { var task = SMSManager.SMSSend(phones, message); return(task); }