public interface ConversationService
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ConversationModel> |
closeConversation(java.lang.String uid,
UserModel user)
Customer closes a given conversation
|
java.util.Optional<ConversationModel> |
createConversation(java.lang.String messages)
Create a ConversationModel
|
java.util.List<ConversationModel> |
getAllConversationsForCustomer(CustomerModel customer)
Gets all conversations of specific customer
|
java.util.Optional<ConversationModel> |
getConversationForUid(java.lang.String uid)
Gets conversation for given uid
|
java.util.List<ConversationModel> |
getOpenConversationsForAgent(EmployeeModel agent)
Gets open conversations for agent
|
java.util.List<ConversationModel> |
getUnassignedConversations()
Gets Unassigned conversations of agent
|
java.util.Optional<ConversationModel> |
pickConversation(java.lang.String uid,
EmployeeModel agent)
Agent chooses a conversation
|
java.util.Optional<ConversationModel> |
updateConversation(java.lang.String uid,
java.lang.String messages)
Create Or Update a ConversationModel
|
java.util.Optional<ConversationModel> createConversation(java.lang.String messages)
messages - the Messages to be savedjava.util.Optional<ConversationModel> getConversationForUid(java.lang.String uid)
uid - the conversation uidjava.util.List<ConversationModel> getAllConversationsForCustomer(CustomerModel customer)
customer - the specific customerjava.util.List<ConversationModel> getOpenConversationsForAgent(EmployeeModel agent)
agent - the specific agentjava.util.List<ConversationModel> getUnassignedConversations()
java.util.Optional<ConversationModel> pickConversation(java.lang.String uid, EmployeeModel agent)
uid - the specific conversation uidagent - the agentjava.util.Optional<ConversationModel> closeConversation(java.lang.String uid, UserModel user)
uid - the specific conversation uiduser - the userjava.util.Optional<ConversationModel> updateConversation(java.lang.String uid, java.lang.String messages)
uid - the specific conversation uidmessages - the messages to be updatedCopyright © 2018 SAP SE. All Rights Reserved.