org.eclipse.ecf.presence.chatroom
Class ChatRoomMessage

java.lang.Object
  extended by org.eclipse.ecf.presence.IMMessage
      extended by org.eclipse.ecf.presence.chatroom.ChatRoomMessage
All Implemented Interfaces:
java.io.Serializable, org.eclipse.core.runtime.IAdaptable, IChatRoomMessage, IIMMessage

public class ChatRoomMessage
extends IMMessage
implements IChatRoomMessage

Chat room message implementation class.

See Also:
Serialized Form

Field Summary
protected  ID chatRoomID
           
protected  java.lang.String message
           
 
Fields inherited from class org.eclipse.ecf.presence.IMMessage
fromID
 
Constructor Summary
ChatRoomMessage(ID fromID, ID roomID, java.lang.String message)
           
 
Method Summary
 ID getChatRoomID()
          Get the room ID for the room of this message.
 java.lang.String getMessage()
          Get the actual message sent to the chat room
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ecf.presence.IMMessage
getAdapter, getFromID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ecf.presence.IIMMessage
getFromID
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

message

protected java.lang.String message

chatRoomID

protected ID chatRoomID
Constructor Detail

ChatRoomMessage

public ChatRoomMessage(ID fromID,
                       ID roomID,
                       java.lang.String message)
Parameters:
fromID - the sender ID
roomID - the chat room ID for the chat room
message - the message sent.
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from interface: IChatRoomMessage
Get the actual message sent to the chat room

Specified by:
getMessage in interface IChatRoomMessage
Returns:
String message sent to chat room. Will not be null.

getChatRoomID

public ID getChatRoomID()
Description copied from interface: IChatRoomMessage
Get the room ID for the room of this message.

Specified by:
getChatRoomID in interface IChatRoomMessage
Returns:
ID of chat room associated with this message.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object