Interface ConversationFacade

All Known Implementing Classes:
DefaultConversationFacade

public interface ConversationFacade
The facade interface of MessageCenter
  • Method Details

    • getConversationsForCustomer

      List<ConversationData> getConversationsForCustomer()
      Gets conversations for customer
      Returns:
      List of the Conversation Data
    • getUnassignedConversations

      List<ConversationData> getUnassignedConversations()
      Gets Unassigned conversations of agent
      Returns:
      the list of Conversation Data
    • pickConversation

      ConversationData pickConversation(String conversationId)
      pick Conversation by Customer Support Agent
      Parameters:
      conversationId - id of the conversation
      Returns:
      the picked Conversation Data
    • getOpenConversations

      List<ConversationData> getOpenConversations()
      Gets open list of the Customer Support Agent
      Returns:
      Assigned and Open List of the Customer Support Agent
    • getConversationById

      ConversationData getConversationById(String conversationId)
      Gets Conversation by Id
      Parameters:
      conversationId - id of the conversation
      Returns:
      the Conversation Data
    • closeConversation

      ConversationData closeConversation(String uid)
      Closes a conversation for given uid
      Parameters:
      uid - the conversation's uid
      Returns:
      the closed conversation
    • isConversationAccessible

      boolean isConversationAccessible(ConversationData conversation)
      Check the specific conversation if is accessible
      Parameters:
      conversation - the specific conversation data
      Returns:
      true is accessible or otherwise
    • getConversationDataList

      ConversationDataList getConversationDataList(List<ConversationData> conversations)
      get conversation data list
      Parameters:
      conversations - the conversation data list
      Returns:
      conversation datas
    • getMessagesForConversation

      List<ConversationMessageData> getMessagesForConversation(String conversationId)
      Get all history messages for conversation
      Parameters:
      conversationId - the specific conversationId
      Returns:
      list of history messages
    • getConversationMessageList

      ConversationMessageListData getConversationMessageList(List<ConversationMessageData> messages)
      Get all history messages for conversation into
      Parameters:
      messages - the messages list
      Returns:
      conversation messages list data
    • sendMessage

      ConversationData sendMessage(ConversationMessageListData conversationMessage)
      Send message
      Parameters:
      conversationMessage - message in content
      Returns:
      ConversationModel message sending used conversation
    • isCustomer

      boolean isCustomer()
      Returns:
      true if current user is customer