public void Stop() { Task <LL_TapStopResult> taskLLTapStop = Call.API.LL_TapStopAsync(new LL_TapStopParams() { NodeID = Call.NodeID, CallID = Call.ID, ControlID = ControlID, }); LL_TapStopResult resultLLTapStop = taskLLTapStop.Result; // If there was an internal error of any kind then throw an exception Call.API.ThrowIfError(resultLLTapStop.Code, resultLLTapStop.Message); }
public StopResult Stop() { Task <LL_TapStopResult> taskLLTapStop = Call.API.LL_TapStopAsync(new LL_TapStopParams() { NodeID = Call.NodeID, CallID = Call.ID, ControlID = ControlID, }); LL_TapStopResult resultLLTapStop = taskLLTapStop.Result; return(new StopResult() { Successful = resultLLTapStop.Code == "200", }); }