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