org.jogre.comm
Class CommChatPrivate

java.lang.Object
  |
  +--org.jogre.comm.CommChatBroadcast
        |
        +--org.jogre.comm.CommChatPrivate
All Implemented Interfaces:
ITransmittable

public class CommChatPrivate
extends CommChatBroadcast

Communication class which is used to send private chat from one user to another.

Version:
Alpha 0.1
Author:
Bob Marks

Field Summary
protected static int MIN_NUM_OF_TOKENS
           
protected  String usernameTo
           
 
Fields inherited from class org.jogre.comm.CommChatBroadcast
message, MIN_TOKENS, usernameFrom
 
Constructor Summary
protected CommChatPrivate()
           
  CommChatPrivate(String inString)
          Constructor which creates a CommChatPrivate object from the flatten () method of another CommChatPrivate object.
  CommChatPrivate(String usernameFrom, String usernameTo, String message)
           
 
Method Summary
 String flatten()
          Transmittable String representation of this object.
 String getUsernameTo()
           
 
Methods inherited from class org.jogre.comm.CommChatBroadcast
getMessage, getUsernameFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_NUM_OF_TOKENS

protected static final int MIN_NUM_OF_TOKENS

usernameTo

protected String usernameTo
Constructor Detail

CommChatPrivate

protected CommChatPrivate()

CommChatPrivate

public CommChatPrivate(String usernameFrom,
                       String usernameTo,
                       String message)

CommChatPrivate

public CommChatPrivate(String inString)
                throws TransmissionException
Constructor which creates a CommChatPrivate object from the flatten () method of another CommChatPrivate object.
Parameters:
inString -  
Throws:
TransmissionException -  
Method Detail

flatten

public String flatten()
Transmittable String representation of this object.
Overrides:
flatten in class CommChatBroadcast
See Also:
ITransmittable.flatten()

getUsernameTo

public String getUsernameTo()