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)); } }
public SendSmsResult SendSms(Sms sms) { using (var client = new NimbowApiClientHttpSyncWrapper()) { var request = sms.ToSendSmsRequest(); var response = client.SendSms(request); return SendSmsResult.FromSmsResponse(response); } }
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)); } }