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