Package io.manebot.chat
Interface ChatProvider
-
public interface ChatProviderProvides chat connections.
-
-
Method Summary
Modifier and Type Method Description default ChatgetChatById(java.lang.String id)Gets a conversation by a specific Id for this platform.java.util.List<Chat>getChats()Gets the conversations this platform provides.default ChatgetPrivateChat(User user)Gets a private message conversation for a specific user.
-
-
-
Method Detail
-
getChats
java.util.List<Chat> getChats()
Gets the conversations this platform provides.- Returns:
- immutable list of presently provided Conversations.
-
getChatById
default Chat getChatById(java.lang.String id)
Gets a conversation by a specific Id for this platform.- Parameters:
id- Chat Id,- Returns:
- Chat instance if one exists, null otherwise.
-
-