Session

data class Session(val status: Session.Status, val sessionId: Long, val lastEventTimeMilliseconds: Long, val eventCount: Int = 1)

Model of data required to keep track of the current session.

Parameters

status

The status of this session

sessionId

Unique session id, typically the time in seconds at the time the session started

lastEventTimeMilliseconds

The time in milliseconds of the latest event of this session.

eventCount

The number of events that have occurred in this session

Constructors

Link copied to clipboard
constructor(status: Session.Status, sessionId: Long, lastEventTimeMilliseconds: Long, eventCount: Int = 1)

Types

Link copied to clipboard

Models the current status of the session.

Properties

Link copied to clipboard
val eventCount: Int = 1
Link copied to clipboard
Link copied to clipboard