public void Stop()
        {
            Task <LL_PlayAndCollectStopResult> taskLLPlayAndCollectStop = Call.API.LL_PlayAndCollectStopAsync(new LL_PlayAndCollectStopParams()
            {
                NodeID    = Call.NodeID,
                CallID    = Call.ID,
                ControlID = ControlID,
            });

            LL_PlayAndCollectStopResult resultLLPlayAndCollectStop = taskLLPlayAndCollectStop.Result;

            // If there was an internal error of any kind then throw an exception
            Call.API.ThrowIfError(resultLLPlayAndCollectStop.Code, resultLLPlayAndCollectStop.Message);
        }
Exemple #2
0
        public StopResult Stop()
        {
            Task <LL_PlayAndCollectStopResult> taskLLPlayAndCollectStop = Call.API.LL_PlayAndCollectStopAsync(new LL_PlayAndCollectStopParams()
            {
                NodeID    = Call.NodeID,
                CallID    = Call.ID,
                ControlID = ControlID,
            });

            LL_PlayAndCollectStopResult resultLLPlayAndCollectStop = taskLLPlayAndCollectStop.Result;

            return(new StopResult()
            {
                Successful = resultLLPlayAndCollectStop.Code == "200",
            });
        }