Exemplo n.º 1
0
        private TelekomJsonWebRequest<NewCallResponse> CreateNewCallWebRequest(NewCallRequest request)
        {
            EnsureRequestValid(request);

            string uri = ServiceBaseUrl + "/call";

            return CreateAuthenticatedRequest<NewCallResponse>(uri, HttpMethod.POST, request);
        }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <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();
 }