public CallControlBridgeServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new CallControlBridgeService(); this.createOptions = new CallControlBridgeOptions() { CallControlId = "c8ac9611-25c3-494a-b8b4-2f036a18a6b2", ClientState = "aGF2ZSBhIG5pY2UgZGF5ID1d", CommandId = new System.Guid("891510ac-f3e4-11e8-af5b-de00688a4901"), ParkAfterUnbridge = "self" }; }
public CallBridgeResponse Bridge() { CallBridgeResponse response = new CallBridgeResponse(); CallControlBridgeOptions options = new CallControlBridgeOptions { }; Console.WriteLine(JsonConvert.SerializeObject(options)); try { response = callControlService.Bridge(options); Console.WriteLine(JsonConvert.SerializeObject(response)); } catch (TelnyxException ex) { Console.WriteLine("exception"); Console.WriteLine(JsonConvert.SerializeObject(ex)); } return(response); }
public virtual async Task <CallBridgeResponse> BridgeAsync(CallControlBridgeOptions options, string postFix = "actions/bridge", RequestOptions requestOptions = null, CancellationToken ct = default) { return(await this.callControlBridgeService.CreateAsync(this.CallControlId, options, postFix, requestOptions, ct)); }
public virtual CallBridgeResponse Bridge(CallControlBridgeOptions options, string postFix = "actions/bridge", RequestOptions requestOptions = null) { return(this.callControlBridgeService.Create(this.CallControlId, options, postFix, requestOptions)); }