Class Message

Object
Message

public class Message extends Object
  • Field Details

  • Constructor Details

    • Message

      public Message(String to, String content, long fileLength)
      A default chat message.
      Parameters:
      to - to someone, playername
      content - content of the message
      fileLength - length of the logfile (including this message).
    • Message

      public Message()
      Public default constructor for the json construction of an instance.
    • Message

      public Message(String from, String content, MessageType type)
      Anything but a chat message, usually broadcasted to everyone playing or used for administrative network purposes (pong or internalpong).
      Parameters:
      from - from someone, playername
      content - content of the message
      type - message type, info or pong or internalpong
  • Method Details