Interface ChatQuitEvent
-
- All Superinterfaces:
ChatEvent
,ChatProvider
,ChatStateChangedEvent
,Event
- All Known Subinterfaces:
AgentChatQuitEvent
,CustomerChatQuitEvent
public interface ChatQuitEvent extends ChatStateChangedEvent
This event is triggered when a chat has been quit.
- Since:
- 12.29
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ChatState
getChatState()
default java.util.Optional<ChatState>
getPreviousChatState()
-
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
-
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
-
getChatState
default ChatState getChatState()
- Specified by:
getChatState
in interfaceChatStateChangedEvent
- Returns:
- the new
ChatState
of the chat after the state change
-
-