Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    public static object SendSMS(string phones, string message)
    {
        Task <string> task = SMSManager.SMSSend(phones, message);

        return(task);
    }
Exemplo n.º 4
0
        public object SendSMS(string phones, string message)
        {
            var task = SMSManager.SMSSend(phones, message);

            return(task);
        }