|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.incesoft.botplatform.sdk.support.DefaultRobotMessage
public class DefaultRobotMessage
| Field Summary |
|---|
| Fields inherited from interface com.incesoft.botplatform.sdk.RobotMessage |
|---|
STYLE_ALL, STYLE_BOLD, STYLE_BOLD_ITALIC, STYLE_ITALIC, STYLE_STRIKE, STYLE_UNDERLINE |
| Constructor Summary | |
|---|---|
DefaultRobotMessage()
|
|
DefaultRobotMessage(TextMessage message)
|
|
| Method Summary | |
|---|---|
void |
deregisterEmoticon(java.lang.String shortcut)
Deregister the emoticon After the invocation of this function, the shortcut appearing in the message will show as plain text. |
int |
getFontColor()
Get font color of the message |
java.lang.String |
getFontName()
Get font name of the message |
int |
getFontStyle()
Get font style of the message, as bold, italic, strikeout, underline |
int |
getInt()
A util function to get integer content. |
TextMessage |
getProtocolMessage()
|
java.lang.String |
getSignature()
Get robot message preface. |
java.lang.String |
getString()
Get the plain text of the message |
void |
registerEmoticon(java.lang.String shortcut,
java.lang.String filename)
Register custom emoticon |
RobotMessage |
setFontColor(int color)
Set font color of the message |
RobotMessage |
setFontName(java.lang.String name)
Set font name of the message |
RobotMessage |
setFontStyle(int style)
Set font style of the message, as bold, italic,strikeout, underline |
RobotMessage |
setInt(int content)
A util function to set the message text with integer content using setString(String.valueOf(content)) |
RobotMessage |
setSignature(java.lang.String sig)
Set robot message preface |
RobotMessage |
setString(java.lang.String content)
Set the plain text of the message |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRobotMessage()
public DefaultRobotMessage(TextMessage message)
| Method Detail |
|---|
public java.lang.String getString()
RobotMessage
getString in interface RobotMessagepublic RobotMessage setString(java.lang.String content)
RobotMessage
setString in interface RobotMessage
public int getInt()
throws java.lang.NumberFormatException
RobotMessageInteger.parseInt(getString())
getInt in interface RobotMessagejava.lang.NumberFormatExceptionpublic RobotMessage setInt(int content)
RobotMessagesetString(String.valueOf(content))
setInt in interface RobotMessagepublic java.lang.String getSignature()
RobotMessage
getSignature in interface RobotMessagepublic RobotMessage setSignature(java.lang.String sig)
RobotMessage
setSignature in interface RobotMessagepublic java.lang.String getFontName()
RobotMessage
getFontName in interface RobotMessagepublic RobotMessage setFontName(java.lang.String name)
RobotMessage
setFontName in interface RobotMessagepublic int getFontStyle()
RobotMessage
getFontStyle in interface RobotMessagepublic RobotMessage setFontStyle(int style)
RobotMessage
setFontStyle in interface RobotMessagepublic int getFontColor()
RobotMessage
getFontColor in interface RobotMessagepublic RobotMessage setFontColor(int color)
RobotMessage
setFontColor in interface RobotMessage
public void registerEmoticon(java.lang.String shortcut,
java.lang.String filename)
RobotMessage
registerEmoticon in interface RobotMessageshortcut - The shortcut of the emoticon. If shortcut appears in message, it'll show as an icon corresponding to your 'filename'.filename - The filename of emotion. Submitted to INCE by SP, and a certified file of INCEpublic void deregisterEmoticon(java.lang.String shortcut)
RobotMessage
deregisterEmoticon in interface RobotMessagepublic TextMessage getProtocolMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||