Interface BotChatClosedEvent
-
- All Superinterfaces:
ChatBotProvider
,ChatClosedEvent
,ChatEvent
,ChatProvider
,ChatStateChangedEvent
,Event
public interface BotChatClosedEvent extends ChatClosedEvent, ChatBotProvider
This event is triggered when a chat has been closed by a bot.
- Since:
- 12.29
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<ChatState>
getPreviousChatState()
java.util.Optional<TransactionCode>
getTransactionCode()
This method returns the optionalTransactionCode
that has been applied during the chat close operation.-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.ChatBotProvider
getChatBot
-
Methods inherited from interface com.novomind.ecom.api.iagent.routing.event.ChatClosedEvent
getChatState
-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.ChatProvider
getChat
-
Methods inherited from interface com.novomind.ecom.api.iagent.common.event.Event
getEventDate
-
-
-
-
Method Detail
-
getTransactionCode
java.util.Optional<TransactionCode> getTransactionCode()
This method returns the optionalTransactionCode
that has been applied during the chat close operation.- Returns:
- the optional
TransactionCode
of the ticket. - Since:
- 12.29
-
getPreviousChatState
default java.util.Optional<ChatState> getPreviousChatState()
- Specified by:
getPreviousChatState
in interfaceChatStateChangedEvent
- Returns:
- the
ChatState
of the chat before the state change, if available or an empty optional in case of an initial event e.g.ChatStartedEvent
-
-