public final class DefaultEmployeesApi extends BaseApi implements EmployeesApi
BaseApi.RequestExecutor, BaseApi.RequestSupplier, BaseApi.ResponseHandler<T>authManagers, config, httpCallback, internalUserAgent| Constructor and Description |
|---|
DefaultEmployeesApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers)
Initializes the controller.
|
DefaultEmployeesApi(Configuration config,
HttpClient httpClient,
Map<String,AuthManager> authManagers,
HttpCallback httpCallback)
Initializes the controller with HTTPCallback.
|
| Modifier and Type | Method and Description |
|---|---|
ListEmployeesResponse |
listEmployees(String locationId,
String status,
Integer limit,
String cursor)
Deprecated.
|
CompletableFuture<ListEmployeesResponse> |
listEmployeesAsync(String locationId,
String status,
Integer limit,
String cursor)
Deprecated.
|
RetrieveEmployeeResponse |
retrieveEmployee(String id)
Deprecated.
|
CompletableFuture<RetrieveEmployeeResponse> |
retrieveEmployeeAsync(String id)
Deprecated.
|
getClientInstance, getHttpCallback, makeHttpCallAsync, validateResponsepublic DefaultEmployeesApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.public DefaultEmployeesApi(Configuration config, HttpClient httpClient, Map<String,AuthManager> authManagers, HttpCallback httpCallback)
config - Configurations added in client.httpClient - Send HTTP requests and read the responses.authManagers - Apply authorization to requests.httpCallback - Callback to be called before and after the HTTP call.@Deprecated public ListEmployeesResponse listEmployees(String locationId, String status, Integer limit, String cursor) throws ApiException, IOException
listEmployees in interface EmployeesApilocationId - Optional parameter: Example:status - Optional parameter: Specifies the EmployeeStatus to filter the employee by.limit - Optional parameter: The number of employees to be returned on each page.cursor - Optional parameter: The token required to retrieve the specified page of
results.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<ListEmployeesResponse> listEmployeesAsync(String locationId, String status, Integer limit, String cursor)
listEmployeesAsync in interface EmployeesApilocationId - Optional parameter: Example:status - Optional parameter: Specifies the EmployeeStatus to filter the employee by.limit - Optional parameter: The number of employees to be returned on each page.cursor - Optional parameter: The token required to retrieve the specified page of
results.@Deprecated public RetrieveEmployeeResponse retrieveEmployee(String id) throws ApiException, IOException
retrieveEmployee in interface EmployeesApiid - Required parameter: UUID for the employee that was requested.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.@Deprecated public CompletableFuture<RetrieveEmployeeResponse> retrieveEmployeeAsync(String id)
retrieveEmployeeAsync in interface EmployeesApiid - Required parameter: UUID for the employee that was requested.Copyright © 2022. All rights reserved.