Package ai.tock.bot.engine.user
Class UserTimeline
-
- All Implemented Interfaces:
public final class UserTimelineThe user timeline - all dialogs and data of the user.
-
-
Field Summary
Fields Modifier and Type Field Description private final DialogcurrentDialogprivate final StorycurrentStoryprivate final ActionlastActionprivate final ActionlastUserActionprivate final PlayerIdplayerIdprivate final UserPreferencesuserPreferencesprivate final UserStateuserStateprivate final List<Dialog>dialogsprivate final Set<String>temporaryIds
-
Constructor Summary
Constructors Constructor Description UserTimeline(PlayerId playerId, UserPreferences userPreferences, UserState userState, List<Dialog> dialogs, Set<String> temporaryIds)
-
Method Summary
Modifier and Type Method Description final DialoggetCurrentDialog()final StorygetCurrentStory()final ActiongetLastAction()final ActiongetLastUserAction()final PlayerIdgetPlayerId()The user id. final UserPreferencesgetUserPreferences()User data, first name, email, etc. final UserStategetUserState()The user state, with simple flags. final List<Dialog>getDialogs()The dialogs of the timeline. final Set<String>getTemporaryIds()Temporary ids (of type PlayerType.temporary linked to this user timeline. final BooleancontainsBotAction()Does this timeline has at least one answer of a bot? StringtoString()-
-
Method Detail
-
getCurrentDialog
final Dialog getCurrentDialog()
-
getCurrentStory
final Story getCurrentStory()
-
getLastAction
final Action getLastAction()
-
getLastUserAction
final Action getLastUserAction()
-
getPlayerId
final PlayerId getPlayerId()
The user id.
-
getUserPreferences
final UserPreferences getUserPreferences()
User data, first name, email, etc.
-
getUserState
final UserState getUserState()
The user state, with simple flags.
-
getDialogs
final List<Dialog> getDialogs()
The dialogs of the timeline.
-
getTemporaryIds
final Set<String> getTemporaryIds()
Temporary ids (of type PlayerType.temporary linked to this user timeline.
-
containsBotAction
final Boolean containsBotAction()
Does this timeline has at least one answer of a bot?
-
-
-
-