Interface AgentChatClosedEvent

All Superinterfaces:
ChatClosedEvent, ChatEvent, ChatProvider, ChatStateChangedEvent, Event, UserProvider

public interface AgentChatClosedEvent extends ChatClosedEvent, UserProvider

This event is triggered when a chat has been closed by an agent.

Since:
11.3
  • Method Details

    • getTransactionCode

      Optional<TransactionCode> getTransactionCode()
      This method returns the optional TransactionCode that has been applied during the chat close operation.
      Returns:
      the optional TransactionCode of the ticket.
      Since:
      11.3
    • getUser

      User getUser()
      This method returns the user who closed the chat.
      Specified by:
      getUser in interface UserProvider
      Returns:
      the user who closed the chat.
      Since:
      11.3
    • getPreviousChatState

      default Optional<ChatState> getPreviousChatState()
      Specified by:
      getPreviousChatState in interface ChatStateChangedEvent
      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