recreateConversation method
VIConversation
recreateConversation(
- String uuid, {
- required VIConversationConfig conversationConfig,
- required int lastSequence,
- required int lastUpdateTime,
- required int createdTime,
Recreate a conversation.
Note that this method does not create a conversation, but restore a previously created conversation from a local storage (database).
Returns VIConversation instance or null if uuid was null.
uuid
- Conversation UUID
Optional conversationConfig
- Conversation config
Optional lastSequence
- Sequence of the last event stored in a local storage (database)
Optional lastUpdateTime
- UNIX timestamp that specifies the time of the last event stored in a local storage (database)
Optional createdTime
- UNIX timestamp that specifies the time of the conversation creation
Implementation
VIConversation recreateConversation(
String uuid, {
required VIConversationConfig conversationConfig,
required int lastSequence,
required int lastUpdateTime,
required int createdTime,
}) =>
VIConversation._recreate(
conversationConfig,
uuid,
lastSequence,
lastUpdateTime,
createdTime,
);