/// <summary> /// Retrieves information about a current phone call. /// </summary> /// <param name="id">The Id of the phone call.</param> /// <returns>An object providing status for the phone call.</returns> internal PhoneCall GetPhoneCallInformation(PhoneCallId id) { GetPhoneCallRequest request = new GetPhoneCallRequest(service); request.Id = id; GetPhoneCallResponse response = request.Execute(); return response.PhoneCall; }
/// <summary> /// Retrieves information about a current phone call. /// </summary> /// <param name="id">The Id of the phone call.</param> /// <returns>An object providing status for the phone call.</returns> internal PhoneCall GetPhoneCallInformation(PhoneCallId id) { GetPhoneCallRequest request = new GetPhoneCallRequest(service); request.Id = id; GetPhoneCallResponse response = request.Execute(); return(response.PhoneCall); }
/// <summary> /// Retrieves information about a current phone call. /// </summary> /// <param name="id">The Id of the phone call.</param> /// <returns>An object providing status for the phone call.</returns> internal async Task <PhoneCall> GetPhoneCallInformation(PhoneCallId id, CancellationToken token) { GetPhoneCallRequest request = new GetPhoneCallRequest(service); request.Id = id; GetPhoneCallResponse response = await request.Execute(token).ConfigureAwait(false); return(response.PhoneCall); }