Package ch.examzone.sebbb.model
Class Exam
java.lang.Object
ch.examzone.sebbb.model.Exam
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-10-25T12:34:17.476436974Z[Etc/UTC]",
comments="Generator version: 7.10.0")
public class Exam
extends Object
Used for create (name, starts_at, ends_at and start_url required), update (any subset) and responses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefault block.static classstatic enumDefault manual: apps wait in the lobby (session state ready) until POST /v1/exams/{id}/start.static enumrunning after POST /v1/exams/{id}/start, or from starts_at on with start_mode on_launch. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionExam()Exam(OffsetDateTime createdAt, OffsetDateTime endedAt, UUID id, String launchUrl, OffsetDateTime startedAt, Exam.StatusEnum status, OffsetDateTime updatedAt) -
Method Summary
Modifier and TypeMethodDescriptionaddAllowedUrlsItem(AllowedUrl allowedUrlsItem) allowedUrls(List<AllowedUrl> allowedUrls) clipboard(Exam.ClipboardEnum clipboard) endsAt(OffsetDateTime endsAt) booleanstatic ExamCreate an instance of Exam given an JSON stringEverything else is blocked and logged.Default block.Get createdAtSet by POST /v1/exams/{id}/end.Get endsAtgetId()Get idgetKiosk()Get kiosksebbb:// link that opens the app.getName()Shown in the app's title bar.Default false.Navigating here ends the session and releases the device.Events and screenshots are deleted after this many days.Get screenshotDefault false.Set by POST /v1/exams/{id}/start.Default manual: apps wait in the lobby (session state ready) until POST /v1/exams/{id}/start.The launch link only works between starts_at and ends_at.Page the in-app browser opens on start.running after POST /v1/exams/{id}/start, or from starts_at on with start_mode on_launch.Get updatedAtinthashCode()kiosk(KioskSettings kiosk) retentionDays(Integer retentionDays) screenshot(ScreenshotSettings screenshot) voidsetAllowedUrls(List<AllowedUrl> allowedUrls) voidsetClipboard(Exam.ClipboardEnum clipboard) voidsetEndsAt(OffsetDateTime endsAt) voidsetKiosk(KioskSettings kiosk) voidvoidsetPrinting(Boolean printing) voidsetQuitUrl(URI quitUrl) voidsetRetentionDays(Integer retentionDays) voidsetScreenshot(ScreenshotSettings screenshot) voidsetSpellcheck(Boolean spellcheck) voidsetStartMode(Exam.StartModeEnum startMode) voidsetStartsAt(OffsetDateTime startsAt) voidsetStartUrl(URI startUrl) spellcheck(Boolean spellcheck) startMode(Exam.StartModeEnum startMode) startsAt(OffsetDateTime startsAt) toJson()Convert an instance of Exam to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALLOWED_URLS
- See Also:
-
SERIALIZED_NAME_CLIPBOARD
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_ENDED_AT
- See Also:
-
SERIALIZED_NAME_ENDS_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_KIOSK
- See Also:
-
SERIALIZED_NAME_LAUNCH_URL
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PRINTING
- See Also:
-
SERIALIZED_NAME_QUIT_URL
- See Also:
-
SERIALIZED_NAME_RETENTION_DAYS
- See Also:
-
SERIALIZED_NAME_SCREENSHOT
- See Also:
-
SERIALIZED_NAME_SPELLCHECK
- See Also:
-
SERIALIZED_NAME_START_MODE
- See Also:
-
SERIALIZED_NAME_START_URL
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
SERIALIZED_NAME_STARTS_AT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Exam
public Exam() -
Exam
public Exam(OffsetDateTime createdAt, OffsetDateTime endedAt, UUID id, String launchUrl, OffsetDateTime startedAt, Exam.StatusEnum status, OffsetDateTime updatedAt)
-
-
Method Details
-
allowedUrls
-
addAllowedUrlsItem
-
getAllowedUrls
Everything else is blocked and logged.- Returns:
- allowedUrls
-
setAllowedUrls
-
clipboard
-
getClipboard
Default block. exam_only allows copy/paste within the exam page.- Returns:
- clipboard
-
setClipboard
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
getEndedAt
Set by POST /v1/exams/{id}/end.- Returns:
- endedAt
-
endsAt
-
getEndsAt
Get endsAt- Returns:
- endsAt
-
setEndsAt
-
getId
Get id- Returns:
- id
-
kiosk
-
getKiosk
Get kiosk- Returns:
- kiosk
-
setKiosk
-
getLaunchUrl
sebbb:// link that opens the app. The same for all participants.- Returns:
- launchUrl
-
name
-
getName
Shown in the app's title bar.- Returns:
- name
-
setName
-
printing
-
getPrinting
Default false.- Returns:
- printing
-
setPrinting
-
quitUrl
-
getQuitUrl
Navigating here ends the session and releases the device.- Returns:
- quitUrl
-
setQuitUrl
-
retentionDays
-
getRetentionDays
Events and screenshots are deleted after this many days. Default 30.- Returns:
- retentionDays
-
setRetentionDays
-
screenshot
-
getScreenshot
Get screenshot- Returns:
- screenshot
-
setScreenshot
-
spellcheck
-
getSpellcheck
Default false.- Returns:
- spellcheck
-
setSpellcheck
-
startMode
-
getStartMode
Default manual: apps wait in the lobby (session state ready) until POST /v1/exams/{id}/start. on_launch: no lobby, the app opens start_url right after the student opens the launch link, no start call needed. Switching to on_launch starts the apps waiting in the lobby.- Returns:
- startMode
-
setStartMode
-
startUrl
-
getStartUrl
Page the in-app browser opens on start.- Returns:
- startUrl
-
setStartUrl
-
getStartedAt
Set by POST /v1/exams/{id}/start. Stays null with start_mode on_launch.- Returns:
- startedAt
-
startsAt
-
getStartsAt
The launch link only works between starts_at and ends_at.- Returns:
- startsAt
-
setStartsAt
-
getStatus
running after POST /v1/exams/{id}/start, or from starts_at on with start_mode on_launch.- Returns:
- status
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Exam
-
fromJson
Create an instance of Exam given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Exam
- Throws:
IOException- if the JSON string is invalid with respect to Exam
-
toJson
Convert an instance of Exam to an JSON string- Returns:
- JSON string
-