Esempio n. 1
0
        /// <summary>
        /// A non blocking account integration mode request/response cycle.
        /// </summary>
        /// <param name="enable">A value indicating whether to enable integration mode for the account.</param>
        /// <param name="callback">The call response.</param>
        public void AccountIntegrationMode(bool enable, Action<AccountIntegrationModeResponse> callback)
        {
            AccountIntegrationModeRequest request = new AccountIntegrationModeRequest(this)
            {
                Enable = enable
            };

            request.GetResponseAsync(callback);
        }
Esempio n. 2
0
        /// <summary>
        /// A blocking account integration mode request/response cycle.
        /// </summary>
        /// <param name="enable">A value indicating whether to enable integration mode for the account.</param>
        /// <returns>The call response.</returns>
        public AccountIntegrationModeResponse AccountIntegrationMode(bool enable)
        {
            AccountIntegrationModeRequest request = new AccountIntegrationModeRequest(this)
            {
                Enable = enable
            };

            return request.GetResponse();
        }