Class UserApi


  • public class UserApi
    extends java.lang.Object
    • Constructor Detail

      • UserApi

        public UserApi()
      • UserApi

        public UserApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public java.lang.String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(java.lang.String customBaseUrl)
      • confirmUserAuthsCall

        public okhttp3.Call confirmUserAuthsCall​(ConfirmUserAuthsReq confirmUserAuthsReq,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for confirmUserAuths
        Parameters:
        confirmUserAuthsReq - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • confirmUserAuths

        public SaveUserRes confirmUserAuths​(ConfirmUserAuthsReq confirmUserAuthsReq)
                                     throws ApiException
        Confirm enabled auth
        Parameters:
        confirmUserAuthsReq - (required)
        Returns:
        SaveUserRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • confirmUserAuthsWithHttpInfo

        public ApiResponse<SaveUserRes> confirmUserAuthsWithHttpInfo​(ConfirmUserAuthsReq confirmUserAuthsReq)
                                                              throws ApiException
        Confirm enabled auth
        Parameters:
        confirmUserAuthsReq - (required)
        Returns:
        ApiResponse<SaveUserRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • confirmUserAuthsAsync

        public okhttp3.Call confirmUserAuthsAsync​(ConfirmUserAuthsReq confirmUserAuthsReq,
                                                  ApiCallback<SaveUserRes> _callback)
                                           throws ApiException
        Confirm enabled auth (asynchronously)
        Parameters:
        confirmUserAuthsReq - (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
      • editUserCall

        public okhttp3.Call editUserCall​(java.lang.String id,
                                         EditUserReq editUserReq,
                                         ApiCallback _callback)
                                  throws ApiException
        Build call for editUser
        Parameters:
        id - (required)
        editUserReq - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • editUser

        public SaveUserRes editUser​(java.lang.String id,
                                    EditUserReq editUserReq)
                             throws ApiException
        (Backend API) Edit user
        Parameters:
        id - (required)
        editUserReq - (required)
        Returns:
        SaveUserRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • editUserWithHttpInfo

        public ApiResponse<SaveUserRes> editUserWithHttpInfo​(java.lang.String id,
                                                             EditUserReq editUserReq)
                                                      throws ApiException
        (Backend API) Edit user
        Parameters:
        id - (required)
        editUserReq - (required)
        Returns:
        ApiResponse<SaveUserRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • editUserAsync

        public okhttp3.Call editUserAsync​(java.lang.String id,
                                          EditUserReq editUserReq,
                                          ApiCallback<SaveUserRes> _callback)
                                   throws ApiException
        (Backend API) Edit user (asynchronously)
        Parameters:
        id - (required)
        editUserReq - (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
      • getUserCall

        public okhttp3.Call getUserCall​(ApiCallback _callback)
                                 throws ApiException
        Build call for getUser
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getUser

        public User getUser()
                     throws ApiException
        Get user
        Returns:
        User
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getUserWithHttpInfo

        public ApiResponse<User> getUserWithHttpInfo()
                                              throws ApiException
        Get user
        Returns:
        ApiResponse<User>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getUserAsync

        public okhttp3.Call getUserAsync​(ApiCallback<User> _callback)
                                  throws ApiException
        Get user (asynchronously)
        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
      • saveUserCall

        public okhttp3.Call saveUserCall​(SaveUserReq saveUserReq,
                                         ApiCallback _callback)
                                  throws ApiException
        Build call for saveUser
        Parameters:
        saveUserReq - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • saveUser

        public SaveUserRes saveUser​(SaveUserReq saveUserReq)
                             throws ApiException
        Save user Saves users. Be careful with order. To avoid potential \"duplicated entry\" problem, remove operation goes firs, then update, then insert.
        Parameters:
        saveUserReq - (required)
        Returns:
        SaveUserRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • saveUserWithHttpInfo

        public ApiResponse<SaveUserRes> saveUserWithHttpInfo​(SaveUserReq saveUserReq)
                                                      throws ApiException
        Save user Saves users. Be careful with order. To avoid potential \"duplicated entry\" problem, remove operation goes firs, then update, then insert.
        Parameters:
        saveUserReq - (required)
        Returns:
        ApiResponse<SaveUserRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • saveUserAsync

        public okhttp3.Call saveUserAsync​(SaveUserReq saveUserReq,
                                          ApiCallback<SaveUserRes> _callback)
                                   throws ApiException
        Save user (asynchronously) Saves users. Be careful with order. To avoid potential \"duplicated entry\" problem, remove operation goes firs, then update, then insert.
        Parameters:
        saveUserReq - (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