Skip to content

Commit

Permalink
Fixup for sms type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cereal-Killa committed Nov 25, 2020
1 parent d7d1c2e commit d0143e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vonage/Messaging/SmsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public SendSmsResponse SendAnSms(SendSmsRequest request, Credentials creds = nul

public Task<SendSmsResponse> SendAnSmsAsync(string from, string to, string text, SmsType type = SmsType.text, Credentials creds = null)
{
return SendAnSmsAsync(new Messaging.SendSmsRequest { From = from, To = to, Text = text }, creds);
return SendAnSmsAsync(new Messaging.SendSmsRequest { From = from, To = to, Type = type, Text = text }, creds);
}

public SendSmsResponse SendAnSms(string from, string to, string text, SmsType type = SmsType.text, Credentials creds = null)
{
return SendAnSms(new Messaging.SendSmsRequest { From = from, To = to, Text = text }, creds);
return SendAnSms(new Messaging.SendSmsRequest { From = from, To = to, Type = type, Text = text }, creds);
}

private static void ValidSmsResponse(SendSmsResponse smsResponse)
Expand Down

0 comments on commit d0143e5

Please sign in to comment.