示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AuthorizationTokenApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public AuthorizationTokenApi(iimmpact.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = iimmpact.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = iimmpact.Client.Configuration.DefaultExceptionFactory;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CarInsuranceApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public CarInsuranceApi(iimmpact.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = iimmpact.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = iimmpact.Client.Configuration.DefaultExceptionFactory;
        }