|
||||||||||
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 RobotMessage
public RobotMessage setString(java.lang.String content)
RobotMessage
setString
in interface RobotMessage
public int getInt() throws java.lang.NumberFormatException
RobotMessage
Integer.parseInt(getString())
getInt
in interface RobotMessage
java.lang.NumberFormatException
public RobotMessage setInt(int content)
RobotMessage
setString(String.valueOf(content))
setInt
in interface RobotMessage
public java.lang.String getSignature()
RobotMessage
getSignature
in interface RobotMessage
public RobotMessage setSignature(java.lang.String sig)
RobotMessage
setSignature
in interface RobotMessage
public java.lang.String getFontName()
RobotMessage
getFontName
in interface RobotMessage
public RobotMessage setFontName(java.lang.String name)
RobotMessage
setFontName
in interface RobotMessage
public int getFontStyle()
RobotMessage
getFontStyle
in interface RobotMessage
public RobotMessage setFontStyle(int style)
RobotMessage
setFontStyle
in interface RobotMessage
public int getFontColor()
RobotMessage
getFontColor
in interface RobotMessage
public RobotMessage setFontColor(int color)
RobotMessage
setFontColor
in interface RobotMessage
public void registerEmoticon(java.lang.String shortcut, java.lang.String filename)
RobotMessage
registerEmoticon
in interface RobotMessage
shortcut
- 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 RobotMessage
public TextMessage getProtocolMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |