Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UsersApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public UsersApi(TripartieWebAPI.CSharpClient.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
                this.Configuration = TripartieWebAPI.CSharpClient.Client.Configuration.Default;
            else
                this.Configuration = configuration;

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

            ExceptionFactory = TripartieWebAPI.CSharpClient.Client.Configuration.DefaultExceptionFactory;
        }