org.eclipse.ecf.presence.chatroom
Class ChatRoomMessage
java.lang.Object
org.eclipse.ecf.presence.IMMessage
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
message
protected java.lang.String message
chatRoomID
protected ID chatRoomID
ChatRoomMessage
public ChatRoomMessage(ID fromID,
ID roomID,
java.lang.String message)
- Parameters:
fromID
- the sender IDroomID
- the chat room ID for the chat roommessage
- the message sent.
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