Class Conversation

    • Constructor Detail

      • Conversation

        public Conversation​(Database database)
      • Conversation

        public Conversation​(Database database,
                            Entity entity,
                            Platform platform,
                            java.lang.String id)
    • Method Detail

      • getConversationId

        public int getConversationId()
      • getId

        public java.lang.String getId()
        Description copied from interface: Conversation
        Gets the Id of this conversation.
        Specified by:
        getId in interface Conversation
        Returns:
        Conversation Id.
      • getChat

        public Chat getChat()
        Description copied from interface: Conversation
        Gets the chat instance associated with this Conversation.
        Specified by:
        getChat in interface Conversation
        Returns:
        Chat instance.
      • isConnected

        public boolean isConnected()
        Description copied from interface: Conversation
        Finds if this conversation is connected to a chat object. If this is true, getChat() should not be null.
        Specified by:
        isConnected in interface Conversation
        Returns:
        true if getChat() is not null, and is reporting connectivity such that getChat().isConnected() == true.
      • setId

        public void setId​(java.lang.String id)
      • getPlatform

        public Platform getPlatform()
        Description copied from interface: Conversation
        Gets the platform associated with this conversation.
        Specified by:
        getPlatform in interface Conversation
        Returns:
        Platform instance.
      • getEntity

        public Entity getEntity()
        Description copied from interface: EntityType
        Gets the entity associated with this object.
        Specified by:
        getEntity in interface EntityType
        Returns:
        Associated entity.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object