public CallControlForkStopServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new CallControlForkStopService(); this.createOptions = new CallControlForkStopOptions() { ClientState = "aGF2ZSBhIG5pY2UgZGF5ID1d", CommandId = new System.Guid("891510ac-f3e4-11e8-af5b-de00688a4901"), }; }
public CallForkStopResponse ForkingStop() { CallForkStopResponse response = new CallForkStopResponse(); CallControlForkStopOptions options = new CallControlForkStopOptions { }; Console.WriteLine(JsonConvert.SerializeObject(options)); try { response = callControlService.ForkStop(options); Console.WriteLine(JsonConvert.SerializeObject(response)); } catch (TelnyxException ex) { Console.WriteLine("exception"); Console.WriteLine(JsonConvert.SerializeObject(ex)); } return(response); }
public virtual async Task <CallForkStopResponse> ForkStopAsync(CallControlForkStopOptions options, string postFix = "actions/fork_stop", RequestOptions requestOptions = null, CancellationToken ct = default) { return(await this.callControlForkStopService.CreateAsync(this.CallControlId, options, postFix, requestOptions, ct)); }
public virtual CallForkStopResponse ForkStop(CallControlForkStopOptions options, string postFix = "actions/fork_stop", RequestOptions requestOptions = null) { return(this.callControlForkStopService.Create(this.CallControlId, options, postFix, requestOptions)); }