private TelekomJsonWebRequest<CallStatusResponse> CreateCallStatusWebRequest(CallStatusRequest request) { EnsureRequestValid(request); string uri = ServiceBaseUrl + string.Format("/call/{0}", Uri.EscapeUriString(request.SessionId)); return CreateAuthenticatedRequest<CallStatusResponse>(uri, HttpMethod.GET, request); }
/// <summary> /// Query the status of a call /// </summary> /// <param name="request">Call parameters</param> /// <returns>Service call response</returns> public CallStatusResponse CallStatus(CallStatusRequest request) { return CreateCallStatusWebRequest(request).Execute(); }
/// <summary> /// Query the status of a call (async) /// </summary> /// <param name="request">Call parameters</param> /// <param name="callback">Handler to invoke after completion</param> public void CallStatus(CallStatusRequest request, Action<CallStatusResponse> callback) { CreateCallStatusWebRequest(request).ExecuteAsync(a => callback(a)); }