tock / ai.tock.bot.engine.user / UserTimeline

UserTimeline

class UserTimeline (source)

The user timeline - all dialogs and data of the user.

Constructors

<init>

The user timeline - all dialogs and data of the user.

UserTimeline(playerId: PlayerId, userPreferences: UserPreferences = UserPreferences(), userState: UserState = UserState(), dialogs: MutableList<Dialog> = mutableListOf(), temporaryIds: MutableSet<String> = mutableSetOf())

Properties

currentDialog

Returns the current dialog.

val currentDialog: Dialog?

currentStory

Returns the current story.

val currentStory: Story?

dialogs

The dialogs of the timeline.

val dialogs: MutableList<Dialog>

lastAction

Last action if any.

val lastAction: Action?

lastUserAction

Last user action if any.

val lastUserAction: Action?

playerId

The user id.

val playerId: PlayerId

temporaryIds

Temporary ids (of type PlayerType.temporary linked to this user timeline.

val temporaryIds: MutableSet<String>

userPreferences

User data, first name, email, etc.

val userPreferences: UserPreferences

userState

The user state, with simple flags.

val userState: UserState

Functions

containsBotAction

Does this timeline has at least one answer of a bot?

fun containsBotAction(): Boolean

toString

fun toString(): String