Package io.manebot.conversation
Interface Conversation
-
- All Superinterfaces:
EntityType
- All Known Implementing Classes:
Conversation
public interface Conversation extends EntityType
-
-
Method Summary
Modifier and Type Method Description Chat
getChat()
Gets the chat instance associated with this Conversation.java.lang.String
getId()
Gets the Id of this conversation.Platform
getPlatform()
Gets the platform associated with this conversation.default boolean
isConnected()
Finds if this conversation is connected to a chat object.-
Methods inherited from interface io.manebot.entity.EntityType
checkPermission, checkPermission, checkPermission, checkPermission, getEntity, hasPermission, hasPermission, hasPermission, hasPermission
-
-
-
-
Method Detail
-
getPlatform
Platform getPlatform()
Gets the platform associated with this conversation.- Returns:
- Platform instance.
-
getId
java.lang.String getId()
Gets the Id of this conversation.- Returns:
- Conversation Id.
-
getChat
Chat getChat()
Gets the chat instance associated with this Conversation.- Returns:
- Chat instance.
-
isConnected
default boolean isConnected()
Finds if this conversation is connected to a chat object. If this is true, getChat() should not be null.- Returns:
- true if getChat() is not null, and is reporting connectivity such that getChat().isConnected() == true.
-
-