コード例 #1
0
        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);
        }
コード例 #2
0
        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",
            });
        }