Package com.legislate.api
Class UsersApi
- java.lang.Object
-
- com.legislate.api.UsersApi
-
public class UsersApi extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkcreateUserUsingPOST(CreateUserRequestDTO body)Create a user This operation will create a usercom.squareup.okhttp.CallcreateUserUsingPOSTAsync(CreateUserRequestDTO body, ApiCallback<Link> callback)Create a user (asynchronously) This operation will create a usercom.squareup.okhttp.CallcreateUserUsingPOSTCall(CreateUserRequestDTO body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for createUserUsingPOSTApiResponse<Link>createUserUsingPOSTWithHttpInfo(CreateUserRequestDTO body)Create a user This operation will create a userApiClientgetApiClient()List<Object>getUsersUsingGET()Get all users.com.squareup.okhttp.CallgetUsersUsingGETAsync(ApiCallback<List<Object>> callback)Get all users.com.squareup.okhttp.CallgetUsersUsingGETCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getUsersUsingGETApiResponse<List<Object>>getUsersUsingGETWithHttpInfo()Get all users.UserResponseDTOgetUserUsingGET(Long userId)Get user details.com.squareup.okhttp.CallgetUserUsingGETAsync(Long userId, ApiCallback<UserResponseDTO> callback)Get user details.com.squareup.okhttp.CallgetUserUsingGETCall(Long userId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getUserUsingGETApiResponse<UserResponseDTO>getUserUsingGETWithHttpInfo(Long userId)Get user details.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
UsersApi
public UsersApi()
-
UsersApi
public UsersApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createUserUsingPOSTCall
public com.squareup.okhttp.Call createUserUsingPOSTCall(CreateUserRequestDTO body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for createUserUsingPOST- Parameters:
body- createUserRequestDTO (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createUserUsingPOST
public Link createUserUsingPOST(CreateUserRequestDTO body) throws ApiException
Create a user This operation will create a user- Parameters:
body- createUserRequestDTO (required)- Returns:
- Link
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createUserUsingPOSTWithHttpInfo
public ApiResponse<Link> createUserUsingPOSTWithHttpInfo(CreateUserRequestDTO body) throws ApiException
Create a user This operation will create a user- Parameters:
body- createUserRequestDTO (required)- Returns:
- ApiResponse<Link>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createUserUsingPOSTAsync
public com.squareup.okhttp.Call createUserUsingPOSTAsync(CreateUserRequestDTO body, ApiCallback<Link> callback) throws ApiException
Create a user (asynchronously) This operation will create a user- Parameters:
body- createUserRequestDTO (required)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getUserUsingGETCall
public com.squareup.okhttp.Call getUserUsingGETCall(Long userId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getUserUsingGET- Parameters:
userId- The unique Id of the user you'd like to look up. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getUserUsingGET
public UserResponseDTO getUserUsingGET(Long userId) throws ApiException
Get user details. This operation will retrieve details about a given user.- Parameters:
userId- The unique Id of the user you'd like to look up. (required)- Returns:
- UserResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getUserUsingGETWithHttpInfo
public ApiResponse<UserResponseDTO> getUserUsingGETWithHttpInfo(Long userId) throws ApiException
Get user details. This operation will retrieve details about a given user.- Parameters:
userId- The unique Id of the user you'd like to look up. (required)- Returns:
- ApiResponse<UserResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getUserUsingGETAsync
public com.squareup.okhttp.Call getUserUsingGETAsync(Long userId, ApiCallback<UserResponseDTO> callback) throws ApiException
Get user details. (asynchronously) This operation will retrieve details about a given user.- Parameters:
userId- The unique Id of the user you'd like to look up. (required)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
getUsersUsingGETCall
public com.squareup.okhttp.Call getUsersUsingGETCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getUsersUsingGET- Parameters:
progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getUsersUsingGET
public List<Object> getUsersUsingGET() throws ApiException
Get all users. This operation will retrieve all users.- Returns:
- List<Object>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getUsersUsingGETWithHttpInfo
public ApiResponse<List<Object>> getUsersUsingGETWithHttpInfo() throws ApiException
Get all users. This operation will retrieve all users.- Returns:
- ApiResponse<List<Object>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getUsersUsingGETAsync
public com.squareup.okhttp.Call getUsersUsingGETAsync(ApiCallback<List<Object>> callback) throws ApiException
Get all users. (asynchronously) This operation will retrieve all users.- Parameters:
callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-