Package ch.examzone.sebbb.api
Class ExamsApi
java.lang.Object
ch.examzone.sebbb.api.ExamsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExam(Exam exam) Create an exam Returns the exam with its launch_url, the same sebbb:// link for all participants.okhttp3.CallcreateExamAsync(Exam exam, ApiCallback<Exam> _callback) Create an exam (asynchronously) Returns the exam with its launch_url, the same sebbb:// link for all participants.okhttp3.CallcreateExamCall(Exam exam, ApiCallback _callback) Build call for createExamcreateExamWithHttpInfo(Exam exam) Create an exam Returns the exam with its launch_url, the same sebbb:// link for all participants.End the exam Ends all sessions that are not ended yet and tells their apps to quit.okhttp3.CallendExamAsync(String id, ApiCallback<Exam> _callback) End the exam (asynchronously) Ends all sessions that are not ended yet and tells their apps to quit.okhttp3.CallendExamCall(String id, ApiCallback _callback) Build call for endExamEnd the exam Ends all sessions that are not ended yet and tells their apps to quit.Get an exam with its current settings and launch_urlokhttp3.CallgetExamAsync(String id, ApiCallback<Exam> _callback) Get an exam with its current settings and launch_url (asynchronously)okhttp3.CallgetExamCall(String id, ApiCallback _callback) Build call for getExamGet an exam with its current settings and launch_urlintAll sessions of the exam with state, participant reference and countersokhttp3.CalllistExamSessionsAsync(String id, ApiCallback<SessionList> _callback) All sessions of the exam with state, participant reference and counters (asynchronously)okhttp3.CalllistExamSessionsCall(String id, ApiCallback _callback) Build call for listExamSessionsAll sessions of the exam with state, participant reference and countersvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) Start the exam Connected apps open the start_url.okhttp3.CallstartExamAsync(String id, ApiCallback<Exam> _callback) Start the exam (asynchronously) Connected apps open the start_url.okhttp3.CallstartExamCall(String id, ApiCallback _callback) Build call for startExamStart the exam Connected apps open the start_url.updateExam(String id, Exam exam) Change any exam setting Connected apps receive the new settings (e.g.okhttp3.CallupdateExamAsync(String id, Exam exam, ApiCallback<Exam> _callback) Change any exam setting (asynchronously) Connected apps receive the new settings (e.g.okhttp3.CallupdateExamCall(String id, Exam exam, ApiCallback _callback) Build call for updateExamupdateExamWithHttpInfo(String id, Exam exam) Change any exam setting Connected apps receive the new settings (e.g.
-
Constructor Details
-
ExamsApi
public ExamsApi() -
ExamsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
createExamCall
Build call for createExam- Parameters:
exam- Exam settings (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 201 Exam - 422 Validation failed -
-
createExam
Create an exam Returns the exam with its launch_url, the same sebbb:// link for all participants.- Parameters:
exam- Exam settings (required)- Returns:
- Exam
- 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 201 Exam - 422 Validation failed -
-
createExamWithHttpInfo
Create an exam Returns the exam with its launch_url, the same sebbb:// link for all participants.- Parameters:
exam- Exam settings (required)- Returns:
- ApiResponse<Exam>
- 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 201 Exam - 422 Validation failed -
-
createExamAsync
Create an exam (asynchronously) Returns the exam with its launch_url, the same sebbb:// link for all participants.- Parameters:
exam- Exam settings (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 201 Exam - 422 Validation failed -
-
endExamCall
Build call for endExam- Parameters:
id- Exam 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 Exam - 404 Error -
-
endExam
End the exam Ends all sessions that are not ended yet and tells their apps to quit. New launches are refused.- Parameters:
id- Exam ID (required)- Returns:
- Exam
- 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 Exam - 404 Error -
-
endExamWithHttpInfo
End the exam Ends all sessions that are not ended yet and tells their apps to quit. New launches are refused.- Parameters:
id- Exam ID (required)- Returns:
- ApiResponse<Exam>
- 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 Exam - 404 Error -
-
endExamAsync
End the exam (asynchronously) Ends all sessions that are not ended yet and tells their apps to quit. New launches are refused.- Parameters:
id- Exam 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 Exam - 404 Error -
-
getExamCall
Build call for getExam- Parameters:
id- Exam 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 Exam - 404 Error -
-
getExam
Get an exam with its current settings and launch_url- Parameters:
id- Exam ID (required)- Returns:
- Exam
- 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 Exam - 404 Error -
-
getExamWithHttpInfo
Get an exam with its current settings and launch_url- Parameters:
id- Exam ID (required)- Returns:
- ApiResponse<Exam>
- 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 Exam - 404 Error -
-
getExamAsync
Get an exam with its current settings and launch_url (asynchronously)- Parameters:
id- Exam 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 Exam - 404 Error -
-
listExamSessionsCall
Build call for listExamSessions- Parameters:
id- Exam 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 Sessions - 404 Error -
-
listExamSessions
All sessions of the exam with state, participant reference and counters- Parameters:
id- Exam ID (required)- Returns:
- SessionList
- 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 Sessions - 404 Error -
-
listExamSessionsWithHttpInfo
All sessions of the exam with state, participant reference and counters- Parameters:
id- Exam ID (required)- Returns:
- ApiResponse<SessionList>
- 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 Sessions - 404 Error -
-
listExamSessionsAsync
public okhttp3.Call listExamSessionsAsync(String id, ApiCallback<SessionList> _callback) throws ApiException All sessions of the exam with state, participant reference and counters (asynchronously)- Parameters:
id- Exam 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 Sessions - 404 Error -
-
startExamCall
Build call for startExam- Parameters:
id- Exam 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 Exam - 404 Error - 409 Exam already ended -
-
startExam
Start the exam Connected apps open the start_url. Apps registering later start right away. Repeating the call re-sends the start. Not needed with start_mode on_launch.- Parameters:
id- Exam ID (required)- Returns:
- Exam
- 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 Exam - 404 Error - 409 Exam already ended -
-
startExamWithHttpInfo
Start the exam Connected apps open the start_url. Apps registering later start right away. Repeating the call re-sends the start. Not needed with start_mode on_launch.- Parameters:
id- Exam ID (required)- Returns:
- ApiResponse<Exam>
- 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 Exam - 404 Error - 409 Exam already ended -
-
startExamAsync
Start the exam (asynchronously) Connected apps open the start_url. Apps registering later start right away. Repeating the call re-sends the start. Not needed with start_mode on_launch.- Parameters:
id- Exam 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 Exam - 404 Error - 409 Exam already ended -
-
updateExamCall
Build call for updateExam- Parameters:
id- Exam ID (required)exam- Exam settings to change (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 Exam - 404 Error - 422 Validation failed -
-
updateExam
Change any exam setting Connected apps receive the new settings (e.g. allowed_urls) immediately.- Parameters:
id- Exam ID (required)exam- Exam settings to change (required)- Returns:
- Exam
- 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 Exam - 404 Error - 422 Validation failed -
-
updateExamWithHttpInfo
Change any exam setting Connected apps receive the new settings (e.g. allowed_urls) immediately.- Parameters:
id- Exam ID (required)exam- Exam settings to change (required)- Returns:
- ApiResponse<Exam>
- 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 Exam - 404 Error - 422 Validation failed -
-
updateExamAsync
public okhttp3.Call updateExamAsync(String id, Exam exam, ApiCallback<Exam> _callback) throws ApiException Change any exam setting (asynchronously) Connected apps receive the new settings (e.g. allowed_urls) immediately.- Parameters:
id- Exam ID (required)exam- Exam settings to change (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 Exam - 404 Error - 422 Validation failed -
-