|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
cz.cuni.amis.pogamut.defcon.communication.messages.commands.SendChatMessage
public class SendChatMessage
Sends the message down to the specified chat channel inside the DefCon.
Constructor Summary | |
---|---|
SendChatMessage(SendChatMessage original)
Cloning constructor... |
|
SendChatMessage(String message,
ChatChannel channel)
Creates new instance of command SendChatMessage. |
Method Summary | |
---|---|
ChatChannel |
getChannel()
Chat channel to use. |
String |
getMessage()
Message to send. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor . |
SendChatMessage |
setChannel(ChatChannel channel)
Chat channel to use. |
SendChatMessage |
setMessage(String message)
Message to send. |
String |
toHtmlString()
Returns message in html format. |
String |
toString()
Returns human readable serialization of the message. |
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand |
---|
getStringizedFields, toMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendChatMessage(String message, ChatChannel channel)
message
- Message to send.channel
- Chat channel to use.public SendChatMessage(SendChatMessage original)
original
- Method Detail |
---|
public String getMessage()
public SendChatMessage setMessage(String message)
message
-
public ChatChannel getChannel()
public SendChatMessage setChannel(ChatChannel channel)
channel
-
public void perform()
DefConCommandExecutor
.
perform
in class DefConCommand
public String toString()
toString
in class CommandMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |