API client is mainly responible for making the HTTP call to the API backend.
コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CatalogModuleApi"/> class.
 /// </summary>
 /// <param name="apiClient"> an instance of ApiClient (optional)</param>
 /// <returns></returns>
 public CatalogModuleApi(ApiClient apiClient = null)
 {
     if (apiClient == null) // use the default one in Configuration
         this.ApiClient = Configuration.DefaultApiClient; 
     else
         this.ApiClient = apiClient;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerManagementModuleApi"/> class.
 /// </summary>
 /// <param name="apiClient"> an instance of ApiClient (optional)</param>
 /// <returns></returns>
 public CustomerManagementModuleApi(ApiClient apiClient = null)
 {
     if (apiClient == null) // use the default one in Configuration
         this.ApiClient = Configuration.DefaultApiClient; 
     else
         this.ApiClient = apiClient;
 }