Interface ConversationFacade
- All Known Implementing Classes:
DefaultConversationFacade
public interface ConversationFacade
The facade interface of MessageCenter
-
Method Summary
Modifier and TypeMethodDescriptioncloseConversation(String uid) Closes a conversation for given uidgetConversationById(String conversationId) Gets Conversation by IdgetConversationDataList(List<ConversationData> conversations) get conversation data listGet all history messages for conversation intoGets conversations for customergetMessagesForConversation(String conversationId) Get all history messages for conversationGets open list of the Customer Support AgentGets Unassigned conversations of agentbooleanisConversationAccessible(ConversationData conversation) Check the specific conversation if is accessiblebooleanpickConversation(String conversationId) pick Conversation by Customer Support AgentsendMessage(ConversationMessageListData conversationMessage) Send message
-
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
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
Gets Conversation by Id- Parameters:
conversationId- id of the conversation- Returns:
- the Conversation Data
-
closeConversation
Closes a conversation for given uid- Parameters:
uid- the conversation's uid- Returns:
- the closed conversation
-
isConversationAccessible
Check the specific conversation if is accessible- Parameters:
conversation- the specific conversation data- Returns:
- true is accessible or otherwise
-
getConversationDataList
get conversation data list- Parameters:
conversations- the conversation data list- Returns:
- conversation datas
-
getMessagesForConversation
Get all history messages for conversation- Parameters:
conversationId- the specific conversationId- Returns:
- list of history messages
-
getConversationMessageList
Get all history messages for conversation into- Parameters:
messages- the messages list- Returns:
- conversation messages list data
-
sendMessage
Send message- Parameters:
conversationMessage- message in content- Returns:
- ConversationModel message sending used conversation
-
isCustomer
boolean isCustomer()- Returns:
- true if current user is customer
-