public SmsService.SendMMSOutput Send(MmsMessage message)
        {
            //_smsInput.SHORT_NUMBER = "7023";

            _mmsInput.SHORT_NUMBER = message.ShortNumber;
            int messageCount = message.Recievers.Count;
            _mmsInput.TO_RECEIVERS = new string[messageCount];
            _mmsInput.MESSAGE_BODY = new string[messageCount];
            _mmsInput.SUBJECT = message.Subject;
            _mmsInput.S_DATE = message.SendDate;
            _mmsInput.EXPIRY_DATE = message.ExpryDate;
            _mmsInput.MIME_DATA = message.MimeData;

            for (int i = 0; i < messageCount; i++)
            {
                _mmsInput.TO_RECEIVERS.SetValue(message.Recievers[i], i);
                // _smsInput.TO_RECEIVERS.SetValue("905330000000", 0);
                //_smsInput.MESSAGE_BODY.SetValue("Bu bir test mesajıdır!", 0);
               // _wapPushInput.MESSAGE_BODY.SetValue(message.MessageBody[0], i);

                _transactionList[0] = "64324423";
            }
            SmsGatewayTurkcell.SmsService.SendMMSOutput output = _smsClient.SendMMS(_smsToken, _transactionList, _mmsInput);

            _smsClient.Close();
            return output;
        }
        public override Model.MmsMessageOutPut SendMmsMessage(Model.MmsMessage message)
        {
            var outPut = _client.Send(message);

            return(new Model.MmsMessageOutPut()
            {
                ErrorCode = outPut.errorCode,
                ErrorDescription = outPut.errorDescription,
                StatusCode = outPut.statusCode
            });
        }
Ejemplo n.º 3
0
 public override Model.MmsMessageOutPut SendMmsMessage(Model.MmsMessage message)
 {
     return(Client.SendMmsMessage(message));
 }
Ejemplo n.º 4
0
 public abstract MmsMessageOutPut SendMmsMessage(MmsMessage message);