public class UserTimeline
The user timeline - all dialogs and data of the user.
public UserTimeline(@NotNull
PlayerId playerId,
@NotNull
UserPreferences userPreferences,
@NotNull
UserState userState,
@NotNull
java.util.List<ai.tock.bot.engine.dialog.Dialog> dialogs,
@NotNull
java.util.Set<java.lang.String> temporaryIds)
The user timeline - all dialogs and data of the user.
playerId - The user id.userPreferences - User data, first name, email, etc.userState - The user state, with simple flags.dialogs - The dialogs of the timeline.temporaryIds - Temporary ids (of type PlayerType.temporary linked to this user timeline.@Nullable public Dialog getCurrentDialog()
Returns the current dialog.
@Nullable public Story getCurrentStory()
Returns the current story.
public boolean containsBotAction()
Does this timeline has at least one answer of a bot?
@Nullable public Action getLastAction()
Last action if any.
@Nullable public Action getLastUserAction()
Last user action if any.
@NotNull public java.lang.String toString()
@NotNull public PlayerId getPlayerId()
The user id.
@NotNull public UserPreferences getUserPreferences()
User data,
first name, email, etc.
@NotNull public UserState getUserState()
The user state,
with simple flags.
@NotNull public java.util.List<ai.tock.bot.engine.dialog.Dialog> getDialogs()
The dialogs of the timeline.
@NotNull public java.util.Set<java.lang.String> getTemporaryIds()
Temporary ids
(of type PlayerType.temporary linked to this user timeline.