Ejemplo n.º 1
0
        public object GetReport(string bulkid)
        {
            object result = null;

            using (NetGSMSmsService.smsnnClient client = new NetGSMSmsService.smsnnClient())
            {
                result = client.rapor_v2(userName, password, bulkid, 100, 1, null, 1);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public string SenderID()
        {
            string result = null;

            if (smsOperator.ToLower() == "postaguvercini")
            {
                using (PostaGuverciniSmsService.smsserviceSoapClient mClient = new PostaGuverciniSmsService.smsserviceSoapClient())
                {
                    result = mClient.IdCheck(userName, password).ToString();
                }
            }
            else if (smsOperator.ToLower() == "netgsm")
            {
                using (NetGSMSmsService.smsnnClient client = new NetGSMSmsService.smsnnClient())
                {
                    result = client.gondericiadlari(userName, password);
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
        public string KalanKontur()
        {
            string result = null;

            if (smsOperator.ToLower() == "postaguvercini")
            {
                using (PostaGuverciniSmsService.smsserviceSoapClient mClient = new PostaGuverciniSmsService.smsserviceSoapClient())
                {
                    result = mClient.CreditBalance(userName, password).ToString();
                }
            }
            else if (smsOperator.ToLower() == "netgsm")
            {
                using (NetGSMSmsService.smsnnClient client = new NetGSMSmsService.smsnnClient())
                {
                    result = client.kredi(userName, password);
                }
            }
            return(result);
        }
Ejemplo n.º 4
0
        public override object SendSMS(string[] gsmNumbers, string[] Message)
        {
            object result = null;

            if (smsOperator.ToLower() == "postaguvercini")
            {
                using (PostaGuverciniSmsService.smsserviceSoapClient mClient = new PostaGuverciniSmsService.smsserviceSoapClient())
                {
                    result = mClient.SmsInsert_N_N(userName, password, null, null, gsmNumbers, Message);
                }
            }
            else if (smsOperator.ToLower() == "netgsm")
            {
                using (NetGSMSmsService.smsnnClient client = new NetGSMSmsService.smsnnClient())
                {
                    result = client.sms_gonder_nn(userName, password, "", smsSenderName, Message, gsmNumbers, "EN", "", "");
                }
            }
            return(result);
        }