Exemple #1
0
        public static string SmsToCustomer(string client_id, string customer_id, string mobile, string message)
        {
            try
            {
                SMSDispatch.DispatchSMSwebservice _service = FactoryDispatchSMSwebservice();

                return(_service.sms_to_customer(client_id, customer_id, mobile, message));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        private static SMSDispatch.DispatchSMSwebservice FactoryDispatchSMSwebservice()
        {
            string Url = ConfigurationManager.AppSettings["SMSDispatch"] as String;

            if (String.IsNullOrEmpty(Url))
            {
                throw new Exception("No se ha configurado correctamente la url del Servicio SMSDispatch");
            }
            SMSDispatch.DispatchSMSwebservice _service = new SMSDispatch.DispatchSMSwebservice();
            _service.Url = Url;

            return(_service);
        }
Exemple #3
0
        public static string Send(string client_id, string mobile, string message)
        {
            try
            {
                SMSDispatch.DispatchSMSwebservice _service = FactoryDispatchSMSwebservice();

                return(_service.send(client_id, mobile, message));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }