Package io.manebot.conversation
Interface ConversationProvider
-
public interface ConversationProvider
-
-
Method Summary
Modifier and Type Method Description Conversation
getConversationByChat(Chat chat)
Gets the conversation associated with a specific chat.Conversation
getConversationById(java.lang.String id)
Gets a conversation by the specified Id.java.util.Collection<java.lang.String>
getConversationIds()
Gets all known conversation Ids.default java.util.Collection<Conversation>
getConversations()
Gets all known conversations.
-
-
-
Method Detail
-
getConversationById
Conversation getConversationById(java.lang.String id)
Gets a conversation by the specified Id.- Parameters:
id
- Id to search for.- Returns:
- Conversation associated with the specified Id.
-
getConversationByChat
Conversation getConversationByChat(Chat chat)
Gets the conversation associated with a specific chat.- Parameters:
chat
- Chat instance to search for.- Returns:
- Conversation instance for the specified chat.
-
getConversationIds
java.util.Collection<java.lang.String> getConversationIds()
Gets all known conversation Ids.- Returns:
- immutable collection of Conversation Ids.
-
getConversations
default java.util.Collection<Conversation> getConversations()
Gets all known conversations.- Returns:
- immutable collection of Conversation instances.
-
-