Package ch.examzone.sebbb.model
Class Event
java.lang.Object
ch.examzone.sebbb.model.Event
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-10-25T12:34:17.476436974Z[Etc/UTC]",
comments="Generator version: 7.10.0")
public class Event
extends Object
Event
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EventCreate an instance of Event given an JSON stringgetData()Get datagetId()Get idApp clock.Get receivedAtgetType()Get typegetUid()Generated by the app.inthashCode()occurredAt(OffsetDateTime occurredAt) putDataItem(String key, Object dataItem) receivedAt(OffsetDateTime receivedAt) voidvoidvoidsetOccurredAt(OffsetDateTime occurredAt) voidsetReceivedAt(OffsetDateTime receivedAt) voidvoidtoJson()Convert an instance of Event 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_DATA
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OCCURRED_AT
- See Also:
-
SERIALIZED_NAME_RECEIVED_AT
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
data
-
putDataItem
-
getData
Get data- Returns:
- data
-
setData
-
id
-
getId
Get id- Returns:
- id
-
setId
-
occurredAt
-
getOccurredAt
App clock. Events buffered offline arrive late.- Returns:
- occurredAt
-
setOccurredAt
-
receivedAt
-
getReceivedAt
Get receivedAt- Returns:
- receivedAt
-
setReceivedAt
-
type
-
getType
Get type- Returns:
- type
-
setType
-
uid
-
getUid
Generated by the app.- Returns:
- uid
-
setUid
-
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 Event
-
fromJson
Create an instance of Event given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Event
- Throws:
IOException- if the JSON string is invalid with respect to Event
-
toJson
Convert an instance of Event to an JSON string- Returns:
- JSON string
-