|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.zion.jbuddy.bots.BotMessage
public class BotMessage
Sends a message to a user.
Constructor Summary | |
---|---|
BotMessage(String type,
RichContent body)
Creates a message. |
|
BotMessage(String type,
String xhtml)
Creates a message, using the specified type and XHTML body. |
Method Summary | |
---|---|
Object |
clone()
Returns an exact copy of this message. |
RichContent |
getBody()
Returns this message's body. |
String |
getRecipients()
Returns the message's recipients. |
String |
getType()
Returns this message's type. |
void |
setBody(RichContent body)
Sets this message's body. |
void |
setBody(String xhtml)
Sets this message's body, using the specified XHTML. |
void |
setRecipients(String recipients)
Sets the message's recipients. |
void |
setType(String type)
Sets this message's type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BotMessage(String type, RichContent body)
public BotMessage(String type, String xhtml)
For more information on the XHTML's format, consult the XML documentation included with the framework.
Method Detail |
---|
public String getType()
Note that the engine does not interpret message types, with the
following exception: incoming type IM
or null
messages from a user are treated as commands. Applications using the
framework may add and interpret any other message types. The
Run
utility included with the framework uses the
JBuddy SDK and its included message types.
public void setType(String type)
This value can contain content variables.
public RichContent getBody()
public void setBody(RichContent body)
public void setBody(String xhtml)
For more information on the XHTML's format, consult the XML documentation included with the framework.
public String getRecipients()
This is a comma-delimited list of user names.
null
public void setRecipients(String recipients)
This is a comma-delimited list of user names. If no recipients are specified, the message will be sent to the user associated with the event that triggered the message.
This value can contain content variables.
public Object clone()
clone
in class Object
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |