Interface SupervisorChatClosedEvent
-
- All Superinterfaces:
ChatClosedEvent
,ChatEvent
,ChatProvider
,ChatStateChangedEvent
,Event
,UserProvider
public interface SupervisorChatClosedEvent extends ChatClosedEvent, UserProvider
This event is triggered when a chat has been closed by a supervisor.
- Since:
- 11.26
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<ChatState>
getPreviousChatState()
User
getUser()
This method returns the user who closed the chat.-
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
-
getUser
User getUser()
This method returns the user who closed the chat.- Specified by:
getUser
in interfaceUserProvider
- Returns:
- the user who closed the chat.
- Since:
- 11.26
-
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
-
-