Package it.fi.meucci.utils
Class Message
java.lang.Object
it.fi.meucci.utils.Message
Messages that are exchanged between client and server.
They have a type, a recipient, and a sender.
Contain an optional field called "content", used for various purposes, depending on the type of message.
Has a static validate method that converts user input into a Message.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Message
Message Costructor- Parameters:
type
- The Message typeType
from
- The senderto
- The addresseeargs
- Arguments of the message. They follow a different syntax depending on the type of the message
-
-
Method Details
-
getType
-
getFrom
-
getTo
-
getArgs
-
setArgs
-