Package wizardquest.telemetry
Class TelemetryEvent
java.lang.Object
wizardquest.telemetry.TelemetryEvent
- Direct Known Subclasses:
SessionEvent,SettingsChangeEvent
-
Constructor Summary
ConstructorsConstructorDescriptionTelemetryEvent(String userID, Instant timeStamp, String event) Constructor for the base telemetry event. -
Method Summary
-
Constructor Details
-
TelemetryEvent
Constructor for the base telemetry event. Produces a telemetry event storing common data.- Parameters:
userID- the ID of the user who is playing the game when the event is constructed.timeStamp- the time the event was constructed in the format yyyy/mm/dd/hh/mm/ssevent- the name of the telemetry event according to the JSON telemetry specification.source- the object that constructed the telemetry event.sessionID- the ID of the session the user is currently playing. See TelemetryListenerInterface for information about sessions.
-
-
Method Details
-
getUserID
Gets the stored user ID.- Returns:
- the user's ID.
-
getTimestamp
Gets the stored timestamp.- Returns:
- the timestamp.
-
getEvent
Gets the name of the telemetry event according to the telemetry specification.- Returns:
- the event's name.
-