diff --git a/Nexmo.Api.Test.Integration/CallTest.cs b/Nexmo.Api.Test.Integration/CallTest.cs index 5478a21f8..6f80bf795 100644 --- a/Nexmo.Api.Test.Integration/CallTest.cs +++ b/Nexmo.Api.Test.Integration/CallTest.cs @@ -53,7 +53,7 @@ public void should_edit_specified_call() var id = "ffffffff-ffff-ffff-ffff-ffffffffffff"; var results = Call.Edit(id, new Call.CallEditCommand { - action = "hangup" + Action = "hangup" }); Assert.AreEqual(id, results.uuid); } diff --git a/Nexmo.Api/Nexmo.Api.csproj b/Nexmo.Api/Nexmo.Api.csproj index 2e2afd960..4dfa262f7 100644 --- a/Nexmo.Api/Nexmo.Api.csproj +++ b/Nexmo.Api/Nexmo.Api.csproj @@ -42,6 +42,7 @@ + diff --git a/Nexmo.Api/Voice/Call.cs b/Nexmo.Api/Voice/Call.cs index fc663c418..ccd43f4e6 100644 --- a/Nexmo.Api/Voice/Call.cs +++ b/Nexmo.Api/Voice/Call.cs @@ -111,11 +111,21 @@ public class CallEditCommand /// unearmuff Removes the earmuff effect from this call leg. /// transfer Transfers this call leg to another NCCO, as specified by the destination parameter. /// - public string action { get; set; } + [JsonProperty("action")] + public string Action { get; set; } /// /// Optional. A JSON object pointing to a replacement NCCO, when action is transfer. /// - public string destination { get; set; } + [JsonProperty("destination")] + public Destination Destination { get; set; } + } + + public class Destination + { + [JsonProperty("type")] + public string Type { get; set; } + [JsonProperty("url")] + public string[] Url { get; set; } } public class SearchFilter