Exemplo n.º 1
0
        /// <summary>
        /// Execute a request against the phone system.
        /// </summary>
        /// <param name="method">The Switchvox XML API Method to execute. For more information, please see http://developers.digium.com/switchvox/wiki/index.php/WebService_methods </param>
        /// <returns>A <see cref="T:SwitchvoxAPI.SwitchvoxResponse"/> encapsulating the XML returned by the phone system.</returns>
        internal SwitchvoxResponse Execute(RequestMethod method)
        {
            var xmlRequestBytes = method.ToBytes();

            return(ExecuteRequest(xmlRequestBytes));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Execute a request against the phone system.
        /// </summary>
        /// <param name="method">The Switchvox XML API Method to execute. For more information, please see http://developers.digium.com/switchvox/wiki/index.php/WebService_methods</param>
        /// <returns>A <see cref="XDocument"/> containing the XML returned by the phone system.</returns>
        internal XDocument Execute(RequestMethod method)
        {
            var xmlRequestBytes = method.ToBytes();

            return(ExecuteRequest(xmlRequestBytes));
        }