com.floranta.client
Class Message

java.lang.Object
  |
  +--com.floranta.client.Message

public class Message
extends java.lang.Object

The message to send or receive


Constructor Summary
Message(java.lang.String channel, java.lang.String text)
          The constructor for a message to send
Message(java.lang.String channel, java.lang.String text, java.lang.String nickname, java.lang.String identifier)
          The constructor for a received message
 
Method Summary
 java.lang.String getChannel()
           
 java.lang.String getIdentifier()
           
 java.lang.String getNickname()
           
 java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(java.lang.String channel,
               java.lang.String text)
The constructor for a message to send

Parameters:
channel - The channel is a tag to keep different clients from interfering
text - The payload that is transferred over a channel

Message

public Message(java.lang.String channel,
               java.lang.String text,
               java.lang.String nickname,
               java.lang.String identifier)
The constructor for a received message

Parameters:
channel - The channel is a tag to keep different clients from interfering
text - The payload that is transferred over a channel
nickname - The name of the sender of a message
identifier - The client's identifier
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Returns:
Returns the identifier of the client.

getNickname

public java.lang.String getNickname()
Returns:
Returns the nickname.

getChannel

public java.lang.String getChannel()
Returns:
Returns the channel.

getText

public java.lang.String getText()
Returns:
Returns the text.