/// <summary>
        /// Disconnects a phone call.
        /// </summary>
        /// <param name="id">The Id of the phone call.</param>
        internal void DisconnectPhoneCall(PhoneCallId id)
        {
            DisconnectPhoneCallRequest request = new DisconnectPhoneCallRequest(service);

            request.Id = id;
            request.Execute();
        }
        /// <summary>
        /// Disconnects a phone call.
        /// </summary>
        /// <param name="id">The Id of the phone call.</param>
        internal System.Threading.Tasks.Task DisconnectPhoneCall(PhoneCallId id, CancellationToken token)
        {
            DisconnectPhoneCallRequest request = new DisconnectPhoneCallRequest(service);

            request.Id = id;
            return(request.Execute(token));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Disconnects a phone call.
        /// </summary>
        /// <param name="id">The Id of the phone call.</param>
        internal System.Threading.Tasks.Task DisconnectPhoneCall(PhoneCallId id)
        {
            DisconnectPhoneCallRequest request = new DisconnectPhoneCallRequest(service);

            request.Id = id;
            return(request.Execute());
        }
        /// <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);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PlayOnPhoneResponse"/> class.
        /// </summary>
        /// <param name="service">The service.</param>
        internal PlayOnPhoneResponse(ExchangeService service)
            : base()
        {
            EwsUtilities.Assert(
                service != null,
                "PlayOnPhoneResponse.ctor",
                "service is null");

            this.phoneCallId = new PhoneCallId();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PlayOnPhoneResponse"/> class.
        /// </summary>
        /// <param name="service">The service.</param>
        internal PlayOnPhoneResponse(ExchangeService service)
            : base()
        {
            EwsUtilities.Assert(
                service != null,
                "PlayOnPhoneResponse.ctor",
                "service is null");

            this.phoneCallId = new PhoneCallId();
        }
Ejemplo n.º 9
0
 /// <summary>
 /// PhoneCall Constructor.
 /// </summary>
 /// <param name="service">EWS service to which this object belongs.</param>
 /// <param name="id">The Id of the phone call.</param>
 internal PhoneCall(ExchangeService service, PhoneCallId id)
     : this(service)
 {
     this.id = id;
 }
 /// <summary>
 /// Disconnects a phone call.
 /// </summary>
 /// <param name="id">The Id of the phone call.</param>
 internal void DisconnectPhoneCall(PhoneCallId id)
 {
     DisconnectPhoneCallRequest request = new DisconnectPhoneCallRequest(service);
     request.Id = id;
     request.Execute();
 }
Ejemplo n.º 11
0
 /// <summary>
 /// PhoneCall Constructor.
 /// </summary>
 /// <param name="service">EWS service to which this object belongs.</param>
 /// <param name="id">The Id of the phone call.</param>
 internal PhoneCall(ExchangeService service, PhoneCallId id)
     : this(service)
 {
     this.id = id;    
 }