private TelekomJsonWebRequest<NewCallResponse> CreateNewCallWebRequest(NewCallRequest request) { EnsureRequestValid(request); string uri = ServiceBaseUrl + "/call"; return CreateAuthenticatedRequest<NewCallResponse>(uri, HttpMethod.POST, request); }
/// <summary> /// Start a new call (async) /// </summary> /// <param name="request">Call parameters</param> /// <param name="callback">Handler to invoke after completion</param> public void NewCall(NewCallRequest request, Action<NewCallResponse> callback) { CreateNewCallWebRequest(request).ExecuteAsync(a => callback(a)); }
/// <summary> /// Start a new call /// </summary> /// <param name="request">Call parameters</param> /// <returns>Service call response</returns> public NewCallResponse NewCall(NewCallRequest request) { return CreateNewCallWebRequest(request).Execute(); }