java.lang.Object
com.developer.nefarious.zjoule.plugin.chat.models.MessageHistory

public class MessageHistory extends Object
Represents the history of chat messages in a conversation. This class encapsulates a list of Message objects, which represent the messages exchanged during a chat session.
  • Constructor Details

    • MessageHistory

      public MessageHistory()
  • Method Details

    • getMessages

      public List<Message> getMessages()
      Retrieves the list of messages in the chat history.
      Returns:
      a List of Message objects representing the chat history.
    • setMessages

      public void setMessages(List<Message> messages)
      Sets the list of messages in the chat history.
      Parameters:
      messages - a List of Message objects to set as the chat history.