public override SmsGateway.Model.SmsMessageOutPut SendSmsMessage(Model.BaseSmsMessage message)
        {
            var outPut = _client.Send(message);

            return(new Model.SmsMessageOutPut()
            {
                ErrorCode = outPut.errorCode,
                ErrorDescription = outPut.errorDescription,
                StatusCode = outPut.statusCode
            });
        }
 public abstract SmsMessageOutPut SendSmsMessage(BaseSmsMessage message);
示例#3
0
 public override Model.SmsMessageOutPut SendSmsMessage(Model.BaseSmsMessage message)
 {
     return(Client.SendSmsMessage(message));
 }
        public SmsService.SendSMSOutput Send(BaseSmsMessage smsMessage)
        {
            //_smsInput.SHORT_NUMBER = "7023";
            _smsInput.SHORT_NUMBER = smsMessage.ShortNumber;
            int messageCount = smsMessage.Recievers.Count;
            _smsInput.TO_RECEIVERS = new string[messageCount];
            _smsInput.MESSAGE_BODY = new string[messageCount];
            _smsInput.SENDER = smsMessage.Sender;
            _smsInput.S_DATE = smsMessage.SendDate;
            _smsInput.EXPIRY_DATE = smsMessage.ExpryDate;
            for (int i = 0; i < messageCount; i++)
            {
                _smsInput.TO_RECEIVERS.SetValue(smsMessage.Recievers[i], i);
                // _smsInput.TO_RECEIVERS.SetValue("905330000000", 0);
                //_smsInput.MESSAGE_BODY.SetValue("Bu bir test mesajıdır!", 0);
                _smsInput.MESSAGE_BODY.SetValue(smsMessage.MessageBody[0], i);
                _transactionList[0] = "64324423";
            }
            SmsGatewayTurkcell.SmsService.SendSMSOutput output = _smsClient.SendSMS(_smsToken, _transactionList, _smsInput);

            _smsClient.Close();
            return output;
        }