Class ChatMessage

java.lang.Object
games.stendhal.server.core.engine.ChatMessage

public class ChatMessage extends Object
  • Field Details

    • source

      public final String source
    • message

      public final String message
    • timestamp

      public final String timestamp
    • messagetype

      public final String messagetype
  • Constructor Details

    • ChatMessage

      public ChatMessage(String source, String message, String timestamp, String messagetype)
      a chat message from a source at a time.
      Parameters:
      source - - who it is from
      message -
      timestamp - - when the message was created
      messagetype - - denote whether message is from a player, support, npc, etc
  • Method Details

    • getSource

      public String getSource()
      Returns:
      source
    • getMessage

      public String getMessage()
      Returns:
      message
    • getTimestamp

      public String getTimestamp()
      Returns:
      timestamp
    • getMessagetype

      public String getMessagetype()
      Returns:
      messagetype
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string of full ChatMessage details