예제 #1
0
        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);
        }
예제 #2
0
        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",
            });
        }