예제 #1
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);
        }
예제 #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);
        }
예제 #3
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);
        }