Class AuthServiceApi


  • public class AuthServiceApi
    extends Object
    • Constructor Detail

      • AuthServiceApi

        public AuthServiceApi()
      • AuthServiceApi

        public AuthServiceApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • loginUser

        public ResponsePackLoginResponse loginUser​(UserLoginDetails body,
                                                   String conversationId,
                                                   String X_API_KEY)
                                            throws ApiException
        Login user Get session id by loggin in
        Parameters:
        body - (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (required)
        Returns:
        ResponsePackLoginResponse
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • loginUserWithHttpInfo

        public ApiResponse<ResponsePackLoginResponse> loginUserWithHttpInfo​(UserLoginDetails body,
                                                                            String conversationId,
                                                                            String X_API_KEY)
                                                                     throws ApiException
        Login user Get session id by loggin in
        Parameters:
        body - (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (required)
        Returns:
        ApiResponse<ResponsePackLoginResponse>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • loginUserAsync

        public com.squareup.okhttp.Call loginUserAsync​(UserLoginDetails body,
                                                       String conversationId,
                                                       String X_API_KEY,
                                                       ApiCallback<ResponsePackLoginResponse> callback)
                                                throws ApiException
        Login user (asynchronously) Get session id by loggin in
        Parameters:
        body - (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (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
      • logoutUserCall

        public com.squareup.okhttp.Call logoutUserCall​(String sessionId,
                                                       String conversationId,
                                                       String X_API_KEY,
                                                       ProgressResponseBody.ProgressListener progressListener,
                                                       ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                throws ApiException
        Build call for logoutUser
        Parameters:
        sessionId - Session ID (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (required)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • logoutUser

        public ResponsePackString logoutUser​(String sessionId,
                                             String conversationId,
                                             String X_API_KEY)
                                      throws ApiException
        Logout use Logout from the session
        Parameters:
        sessionId - Session ID (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (required)
        Returns:
        ResponsePackString
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • logoutUserWithHttpInfo

        public ApiResponse<ResponsePackString> logoutUserWithHttpInfo​(String sessionId,
                                                                      String conversationId,
                                                                      String X_API_KEY)
                                                               throws ApiException
        Logout use Logout from the session
        Parameters:
        sessionId - Session ID (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (required)
        Returns:
        ApiResponse<ResponsePackString>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • logoutUserAsync

        public com.squareup.okhttp.Call logoutUserAsync​(String sessionId,
                                                        String conversationId,
                                                        String X_API_KEY,
                                                        ApiCallback<ResponsePackString> callback)
                                                 throws ApiException
        Logout use (asynchronously) Logout from the session
        Parameters:
        sessionId - Session ID (required)
        conversationId - Conversation ID (required)
        X_API_KEY - API access key (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