Package ch.examzone.sebbb.api
Class SessionsApi
java.lang.Object
ch.examzone.sebbb.api.SessionsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendSession(String id) End a session from your side E.g.okhttp3.CallendSessionAsync(String id, ApiCallback<Session> _callback) End a session from your side (asynchronously) E.g.okhttp3.CallendSessionCall(String id, ApiCallback _callback) Build call for endSessionEnd a session from your side E.g.intgetSession(String id) Get a session: state, times, app version, integrity, countersokhttp3.CallgetSessionAsync(String id, ApiCallback<Session> _callback) Get a session: state, times, app version, integrity, counters (asynchronously)okhttp3.CallgetSessionCall(String id, ApiCallback _callback) Build call for getSessionGet a session: state, times, app version, integrity, counterslistSessionEvents(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to) Event log of a session, oldest firstokhttp3.CalllistSessionEventsAsync(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to, ApiCallback<EventPage> _callback) Event log of a session, oldest first (asynchronously)okhttp3.CalllistSessionEventsCall(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to, ApiCallback _callback) Build call for listSessionEventslistSessionEventsWithHttpInfo(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to) Event log of a session, oldest firstlistSessionScreenshots(String id, Integer limit, Integer after) Screenshots of a session with short-lived signed URLs, oldest firstokhttp3.CalllistSessionScreenshotsAsync(String id, Integer limit, Integer after, ApiCallback<ScreenshotPage> _callback) Screenshots of a session with short-lived signed URLs, oldest first (asynchronously)okhttp3.CalllistSessionScreenshotsCall(String id, Integer limit, Integer after, ApiCallback _callback) Build call for listSessionScreenshotslistSessionScreenshotsWithHttpInfo(String id, Integer limit, Integer after) Screenshots of a session with short-lived signed URLs, oldest firstvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) setSessionParticipant(String id, Participant participant) Tag the session with your participant reference Optional.okhttp3.CallsetSessionParticipantAsync(String id, Participant participant, ApiCallback<Session> _callback) Tag the session with your participant reference (asynchronously) Optional.okhttp3.CallsetSessionParticipantCall(String id, Participant participant, ApiCallback _callback) Build call for setSessionParticipantsetSessionParticipantWithHttpInfo(String id, Participant participant) Tag the session with your participant reference Optional.
-
Constructor Details
-
SessionsApi
public SessionsApi() -
SessionsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
endSessionCall
Build call for endSession- Parameters:
id- Session ID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
endSession
End a session from your side E.g. when the exam time is up. The app quits and releases the device.- Parameters:
id- Session ID (required)- Returns:
- Session
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
endSessionWithHttpInfo
End a session from your side E.g. when the exam time is up. The app quits and releases the device.- Parameters:
id- Session ID (required)- Returns:
- ApiResponse<Session>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
endSessionAsync
End a session from your side (asynchronously) E.g. when the exam time is up. The app quits and releases the device.- Parameters:
id- Session ID (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- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
getSessionCall
Build call for getSession- Parameters:
id- Session ID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
getSession
Get a session: state, times, app version, integrity, counters- Parameters:
id- Session ID (required)- Returns:
- Session
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
getSessionWithHttpInfo
Get a session: state, times, app version, integrity, counters- Parameters:
id- Session ID (required)- Returns:
- ApiResponse<Session>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
getSessionAsync
Get a session: state, times, app version, integrity, counters (asynchronously)- Parameters:
id- Session ID (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- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error -
-
listSessionEventsCall
public okhttp3.Call listSessionEventsCall(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to, ApiCallback _callback) throws ApiException Build call for listSessionEvents- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)type- Comma-separated event types (optional)from- occurred_at >= from (optional)to- occurred_at < to (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Events - 404 Error -
-
listSessionEvents
public EventPage listSessionEvents(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to) throws ApiException Event log of a session, oldest first- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)type- Comma-separated event types (optional)from- occurred_at >= from (optional)to- occurred_at < to (optional)- Returns:
- EventPage
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Events - 404 Error -
-
listSessionEventsWithHttpInfo
public ApiResponse<EventPage> listSessionEventsWithHttpInfo(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to) throws ApiException Event log of a session, oldest first- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)type- Comma-separated event types (optional)from- occurred_at >= from (optional)to- occurred_at < to (optional)- Returns:
- ApiResponse<EventPage>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Events - 404 Error -
-
listSessionEventsAsync
public okhttp3.Call listSessionEventsAsync(String id, Integer limit, Integer after, String type, OffsetDateTime from, OffsetDateTime to, ApiCallback<EventPage> _callback) throws ApiException Event log of a session, oldest first (asynchronously)- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)type- Comma-separated event types (optional)from- occurred_at >= from (optional)to- occurred_at < to (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- Http Response Details:
Response Details Status Code Description Response Headers 200 Events - 404 Error -
-
listSessionScreenshotsCall
public okhttp3.Call listSessionScreenshotsCall(String id, Integer limit, Integer after, ApiCallback _callback) throws ApiException Build call for listSessionScreenshots- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Screenshots - 404 Error -
-
listSessionScreenshots
public ScreenshotPage listSessionScreenshots(String id, Integer limit, Integer after) throws ApiException Screenshots of a session with short-lived signed URLs, oldest first- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)- Returns:
- ScreenshotPage
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Screenshots - 404 Error -
-
listSessionScreenshotsWithHttpInfo
public ApiResponse<ScreenshotPage> listSessionScreenshotsWithHttpInfo(String id, Integer limit, Integer after) throws ApiException Screenshots of a session with short-lived signed URLs, oldest first- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (optional)- Returns:
- ApiResponse<ScreenshotPage>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Screenshots - 404 Error -
-
listSessionScreenshotsAsync
public okhttp3.Call listSessionScreenshotsAsync(String id, Integer limit, Integer after, ApiCallback<ScreenshotPage> _callback) throws ApiException Screenshots of a session with short-lived signed URLs, oldest first (asynchronously)- Parameters:
id- Session ID (required)limit- 1–1000, default 100 (optional)after- `next` of the previous page (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- Http Response Details:
Response Details Status Code Description Response Headers 200 Screenshots - 404 Error -
-
setSessionParticipantCall
public okhttp3.Call setSessionParticipantCall(String id, Participant participant, ApiCallback _callback) throws ApiException Build call for setSessionParticipant- Parameters:
id- Session ID (required)participant- Participant (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error - 422 Validation failed -
-
setSessionParticipant
Tag the session with your participant reference Optional. Makes the session list readable. Several sessions may carry the same reference.- Parameters:
id- Session ID (required)participant- Participant (required)- Returns:
- Session
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error - 422 Validation failed -
-
setSessionParticipantWithHttpInfo
public ApiResponse<Session> setSessionParticipantWithHttpInfo(String id, Participant participant) throws ApiException Tag the session with your participant reference Optional. Makes the session list readable. Several sessions may carry the same reference.- Parameters:
id- Session ID (required)participant- Participant (required)- Returns:
- ApiResponse<Session>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error - 422 Validation failed -
-
setSessionParticipantAsync
public okhttp3.Call setSessionParticipantAsync(String id, Participant participant, ApiCallback<Session> _callback) throws ApiException Tag the session with your participant reference (asynchronously) Optional. Makes the session list readable. Several sessions may carry the same reference.- Parameters:
id- Session ID (required)participant- Participant (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- Http Response Details:
Response Details Status Code Description Response Headers 200 Session - 404 Error - 422 Validation failed -
-