Package ch.examzone.sebbb.model
Class Session
java.lang.Object
ch.examzone.sebbb.model.Session
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-10-25T12:34:17.476436974Z[Etc/UTC]",
comments="Generator version: 7.10.0")
public class Session
extends Object
One app launch. The id is generated by the app and sent to your exam pages via the X-Sebbb-Session token. States: ready (app registered) → running (start URL opened) → finished (student clicked exit, app still locked) → ended (device released).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets endReasonstatic enumverified = the app binary hash is a known sebbb release.static enumGets or Sets state -
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 String -
Constructor Summary
ConstructorsConstructorDescriptionSession()Session(OffsetDateTime endedAt, OffsetDateTime finishedAt, OffsetDateTime startedAt) -
Method Summary
Modifier and TypeMethodDescriptionappVersion(String appVersion) counts(SessionCounts counts) endReason(Session.EndReasonEnum endReason) booleanstatic SessionCreate an instance of Session given an JSON stringGet appVersionGet countsGet endedAtGet endReasonGet examIdGet finishedAtgetId()Get idverified = the app binary hash is a known sebbb release.Get lastSeenAtGet participantRefGet platformGet registeredAtGet startedAtgetState()Get stateinthashCode()integrity(Session.IntegrityEnum integrity) lastSeenAt(OffsetDateTime lastSeenAt) participantRef(String participantRef) registeredAt(OffsetDateTime registeredAt) voidsetAppVersion(String appVersion) voidsetCounts(SessionCounts counts) voidsetEndReason(Session.EndReasonEnum endReason) voidvoidvoidsetIntegrity(Session.IntegrityEnum integrity) voidsetLastSeenAt(OffsetDateTime lastSeenAt) voidsetParticipantRef(String participantRef) voidsetPlatform(String platform) voidsetRegisteredAt(OffsetDateTime registeredAt) voidsetState(Session.StateEnum state) state(Session.StateEnum state) toJson()Convert an instance of Session 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_APP_VERSION
- See Also:
-
SERIALIZED_NAME_COUNTS
- See Also:
-
SERIALIZED_NAME_END_REASON
- See Also:
-
SERIALIZED_NAME_ENDED_AT
- See Also:
-
SERIALIZED_NAME_EXAM_ID
- See Also:
-
SERIALIZED_NAME_FINISHED_AT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INTEGRITY
- See Also:
-
SERIALIZED_NAME_LAST_SEEN_AT
- See Also:
-
SERIALIZED_NAME_PARTICIPANT_REF
- See Also:
-
SERIALIZED_NAME_PLATFORM
- See Also:
-
SERIALIZED_NAME_REGISTERED_AT
- See Also:
-
SERIALIZED_NAME_STARTED_AT
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Session
public Session() -
Session
-
-
Method Details
-
appVersion
-
getAppVersion
Get appVersion- Returns:
- appVersion
-
setAppVersion
-
counts
-
getCounts
Get counts- Returns:
- counts
-
setCounts
-
endReason
-
getEndReason
Get endReason- Returns:
- endReason
-
setEndReason
-
getEndedAt
Get endedAt- Returns:
- endedAt
-
examId
-
getExamId
Get examId- Returns:
- examId
-
setExamId
-
getFinishedAt
Get finishedAt- Returns:
- finishedAt
-
id
-
getId
Get id- Returns:
- id
-
setId
-
integrity
-
getIntegrity
verified = the app binary hash is a known sebbb release.- Returns:
- integrity
-
setIntegrity
-
lastSeenAt
-
getLastSeenAt
Get lastSeenAt- Returns:
- lastSeenAt
-
setLastSeenAt
-
participantRef
-
getParticipantRef
Get participantRef- Returns:
- participantRef
-
setParticipantRef
-
platform
-
getPlatform
Get platform- Returns:
- platform
-
setPlatform
-
registeredAt
-
getRegisteredAt
Get registeredAt- Returns:
- registeredAt
-
setRegisteredAt
-
getStartedAt
Get startedAt- Returns:
- startedAt
-
state
-
getState
Get state- Returns:
- state
-
setState
-
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 Session
-
fromJson
Create an instance of Session given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Session
- Throws:
IOException- if the JSON string is invalid with respect to Session
-
toJson
Convert an instance of Session to an JSON string- Returns:
- JSON string
-