Package app.kntrl.client.openapi.api
Class SessionApi
- java.lang.Object
-
- app.kntrl.client.openapi.api.SessionApi
-
public class SessionApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SessionApi()SessionApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticateResauthenticate(AuthenticateReq authenticateReq)Authenticate sessionokhttp3.CallauthenticateAsync(AuthenticateReq authenticateReq, ApiCallback<AuthenticateRes> _callback)Authenticate session (asynchronously)okhttp3.CallauthenticateCall(AuthenticateReq authenticateReq, ApiCallback _callback)Build call for authenticateApiResponse<AuthenticateRes>authenticateWithHttpInfo(AuthenticateReq authenticateReq)Authenticate sessionAuthenticateResconfirmSessionAuths(ConfirmSessionAuthsReq confirmSessionAuthsReq)Confirm with code Confirm auth with received code.okhttp3.CallconfirmSessionAuthsAsync(ConfirmSessionAuthsReq confirmSessionAuthsReq, ApiCallback<AuthenticateRes> _callback)Confirm with code (asynchronously) Confirm auth with received code.okhttp3.CallconfirmSessionAuthsCall(ConfirmSessionAuthsReq confirmSessionAuthsReq, ApiCallback _callback)Build call for confirmSessionAuthsApiResponse<AuthenticateRes>confirmSessionAuthsWithHttpInfo(ConfirmSessionAuthsReq confirmSessionAuthsReq)Confirm with code Confirm auth with received code.java.lang.ObjectdelSession(java.lang.String sessionId)Sign out another sessionokhttp3.CalldelSessionAsync(java.lang.String sessionId, ApiCallback<java.lang.Object> _callback)Sign out another session (asynchronously)okhttp3.CalldelSessionCall(java.lang.String sessionId, ApiCallback _callback)Build call for delSessionApiResponse<java.lang.Object>delSessionWithHttpInfo(java.lang.String sessionId)Sign out another sessionFindSessionsResgetAll(java.lang.String entry, java.lang.String userId)List sessionsokhttp3.CallgetAllAsync(java.lang.String entry, java.lang.String userId, ApiCallback<FindSessionsRes> _callback)List sessions (asynchronously)okhttp3.CallgetAllCall(java.lang.String entry, java.lang.String userId, ApiCallback _callback)Build call for getAllApiResponse<FindSessionsRes>getAllWithHttpInfo(java.lang.String entry, java.lang.String userId)List sessionsApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()SessiongetSession()Get session Get current session data.okhttp3.CallgetSessionAsync(ApiCallback<Session> _callback)Get session (asynchronously) Get current session data.okhttp3.CallgetSessionCall(ApiCallback _callback)Build call for getSessionApiResponse<Session>getSessionWithHttpInfo()Get session Get current session data.AuthenticateResnewSession(NewSessionReq newSessionReq)New session Create new session.okhttp3.CallnewSessionAsync(NewSessionReq newSessionReq, ApiCallback<AuthenticateRes> _callback)New session (asynchronously) Create new session.okhttp3.CallnewSessionCall(NewSessionReq newSessionReq, ApiCallback _callback)Build call for newSessionApiResponse<AuthenticateRes>newSessionWithHttpInfo(NewSessionReq newSessionReq)New session Create new session.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)java.lang.ObjectsignOut()Sign out current sessionokhttp3.CallsignOutAsync(ApiCallback<java.lang.Object> _callback)Sign out current session (asynchronously)okhttp3.CallsignOutCall(ApiCallback _callback)Build call for signOutApiResponse<java.lang.Object>signOutWithHttpInfo()Sign out current session
-
-
-
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 ApiExceptionBuild 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 ApiExceptionSign 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 ApiExceptionSign 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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionSign 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
-
-