public SendSmsResult SendSms(Sms sms)
        {
            Contract.Requires(sms != null);
            Contract.Ensures(Contract.Result<SendSmsResult>() != null);

            return default(SendSmsResult);
        }
        public Task<SendSmsResult> SendSmsAsync(Sms sms)
        {
            Contract.Requires(sms != null);
            Contract.Ensures(Contract.Result<Task<SendSmsResult>>() != null);

            return default(Task<SendSmsResult>);
        }
        public async Task<SendSmsResult> SendSmsAsync(Sms sms)
        {
            using (var client = new NimbowApiClientHttpAsyncWrapper())
            {
                var request = sms.ToSendSmsRequest();
                var response = await client.SendSmsAsync(request);

                return SendSmsResult.FromSmsResponse(response);
            }
        }
        public SendSmsResult SendSms(Sms sms)
        {
            using (var client = new NimbowApiClientHttpSyncWrapper())
            {
                var request = sms.ToSendSmsRequest();
                var response = client.SendSms(request);

                return SendSmsResult.FromSmsResponse(response);
            }
        }
Exemple #5
0
        public SendSmsResult SendSms(Sms sms)
        {
            using (var client = new NimbowApiClientHttpSyncWrapper())
            {
                var request  = sms.ToSendSmsRequest();
                var response = client.SendSms(request);

                return(SendSmsResult.FromSmsResponse(response));
            }
        }
Exemple #6
0
        public async Task <SendSmsResult> SendSmsAsync(Sms sms)
        {
            using (var client = new NimbowApiClientHttpAsyncWrapper())
            {
                var request  = sms.ToSendSmsRequest();
                var response = await client.SendSmsAsync(request);

                return(SendSmsResult.FromSmsResponse(response));
            }
        }