Class SessionApi


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

      • SessionApi

        public SessionApi()
      • SessionApi

        public SessionApi​(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)
      • authenticateCall

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

        public AuthenticateRes authenticate​(AuthenticateReq authenticateReq)
                                     throws ApiException
        Authenticate session
        Parameters:
        authenticateReq - (required)
        Returns:
        AuthenticateRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • authenticateWithHttpInfo

        public ApiResponse<AuthenticateRes> authenticateWithHttpInfo​(AuthenticateReq authenticateReq)
                                                              throws ApiException
        Authenticate session
        Parameters:
        authenticateReq - (required)
        Returns:
        ApiResponse<AuthenticateRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • authenticateAsync

        public okhttp3.Call authenticateAsync​(AuthenticateReq authenticateReq,
                                              ApiCallback<AuthenticateRes> _callback)
                                       throws ApiException
        Authenticate session (asynchronously)
        Parameters:
        authenticateReq - (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
      • confirmSessionAuthsCall

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

        public AuthenticateRes confirmSessionAuths​(ConfirmSessionAuthsReq confirmSessionAuthsReq)
                                            throws ApiException
        Confirm with code Confirm auth with received code. To get code id, check response of sign in / sign up / authenticate API.
        Parameters:
        confirmSessionAuthsReq - (required)
        Returns:
        AuthenticateRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • confirmSessionAuthsWithHttpInfo

        public ApiResponse<AuthenticateRes> confirmSessionAuthsWithHttpInfo​(ConfirmSessionAuthsReq confirmSessionAuthsReq)
                                                                     throws ApiException
        Confirm with code Confirm auth with received code. To get code id, check response of sign in / sign up / authenticate API.
        Parameters:
        confirmSessionAuthsReq - (required)
        Returns:
        ApiResponse<AuthenticateRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • confirmSessionAuthsAsync

        public okhttp3.Call confirmSessionAuthsAsync​(ConfirmSessionAuthsReq confirmSessionAuthsReq,
                                                     ApiCallback<AuthenticateRes> _callback)
                                              throws ApiException
        Confirm with code (asynchronously) Confirm auth with received code. To get code id, check response of sign in / sign up / authenticate API.
        Parameters:
        confirmSessionAuthsReq - (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
      • delSessionCall

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

        public java.lang.Object delSession​(java.lang.String sessionId)
                                    throws ApiException
        Sign out another session
        Parameters:
        sessionId - (required)
        Returns:
        Object
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • delSessionWithHttpInfo

        public ApiResponse<java.lang.Object> delSessionWithHttpInfo​(java.lang.String sessionId)
                                                             throws ApiException
        Sign out another session
        Parameters:
        sessionId - (required)
        Returns:
        ApiResponse<Object>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • delSessionAsync

        public okhttp3.Call delSessionAsync​(java.lang.String sessionId,
                                            ApiCallback<java.lang.Object> _callback)
                                     throws ApiException
        Sign out another session (asynchronously)
        Parameters:
        sessionId - (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
      • getAllCall

        public okhttp3.Call getAllCall​(java.lang.String entry,
                                       java.lang.String userId,
                                       ApiCallback _callback)
                                throws ApiException
        Build call for getAll
        Parameters:
        entry - (optional)
        userId - (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAll

        public FindSessionsRes getAll​(java.lang.String entry,
                                      java.lang.String userId)
                               throws ApiException
        List sessions
        Parameters:
        entry - (optional)
        userId - (optional)
        Returns:
        FindSessionsRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAllWithHttpInfo

        public ApiResponse<FindSessionsRes> getAllWithHttpInfo​(java.lang.String entry,
                                                               java.lang.String userId)
                                                        throws ApiException
        List sessions
        Parameters:
        entry - (optional)
        userId - (optional)
        Returns:
        ApiResponse<FindSessionsRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAllAsync

        public okhttp3.Call getAllAsync​(java.lang.String entry,
                                        java.lang.String userId,
                                        ApiCallback<FindSessionsRes> _callback)
                                 throws ApiException
        List sessions (asynchronously)
        Parameters:
        entry - (optional)
        userId - (optional)
        _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
      • getSessionCall

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

        public Session getSession()
                           throws ApiException
        Get session Get current session data.
        Returns:
        Session
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSessionWithHttpInfo

        public ApiResponse<Session> getSessionWithHttpInfo()
                                                    throws ApiException
        Get session Get current session data.
        Returns:
        ApiResponse<Session>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getSessionAsync

        public okhttp3.Call getSessionAsync​(ApiCallback<Session> _callback)
                                     throws ApiException
        Get session (asynchronously) Get current session data.
        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
      • newSessionCall

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

        public AuthenticateRes newSession​(NewSessionReq newSessionReq)
                                   throws ApiException
        New session Create new session. if session entry requires another entry, access token must be provided.
        Parameters:
        newSessionReq - (required)
        Returns:
        AuthenticateRes
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • newSessionWithHttpInfo

        public ApiResponse<AuthenticateRes> newSessionWithHttpInfo​(NewSessionReq newSessionReq)
                                                            throws ApiException
        New session Create new session. if session entry requires another entry, access token must be provided.
        Parameters:
        newSessionReq - (required)
        Returns:
        ApiResponse<AuthenticateRes>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • newSessionAsync

        public okhttp3.Call newSessionAsync​(NewSessionReq newSessionReq,
                                            ApiCallback<AuthenticateRes> _callback)
                                     throws ApiException
        New session (asynchronously) Create new session. if session entry requires another entry, access token must be provided.
        Parameters:
        newSessionReq - (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
      • signOutCall

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

        public java.lang.Object signOut()
                                 throws ApiException
        Sign out current session
        Returns:
        Object
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • signOutWithHttpInfo

        public ApiResponse<java.lang.Object> signOutWithHttpInfo()
                                                          throws ApiException
        Sign out current session
        Returns:
        ApiResponse<Object>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • signOutAsync

        public okhttp3.Call signOutAsync​(ApiCallback<java.lang.Object> _callback)
                                  throws ApiException
        Sign out current session (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