| 枚举常量和说明 |
|---|
anonymous
匿名发消息
|
at
at 某人
|
basketball
投篮表情
|
cardimage
一种 XML 的图片消息
|
contact
推荐好友/群
|
dice
掷骰子魔法表情
|
face
表情
|
forward
合并转发
|
gift
礼物
|
image
图片
|
json
JSON 消息
|
keyboard
富文本下的按钮
|
location
位置
|
longmsg
长消息
|
markdown
富文本消息
|
marketface
商城大表情消息
|
mface
商城大表情消息
|
music
音乐分享
|
new_dice
新掷骰子表情
|
new_rps
新猜拳表情
|
node
合并转发消息节点
|
poke
戳一戳
|
record
语音
|
redbag
红包
|
reply
回复
|
rps
猜拳魔法表情
|
shake
窗口抖动(戳一戳)
|
share
链接分享
|
text
文本类型
|
tts
文本转语音
|
unknown
未知类型
|
video
短视频
|
xml
XML 消息
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isValidMsgType(MsgType typeEnum) |
static MsgType |
typeOf(java.lang.String type) |
static MsgType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MsgType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MsgType at
public static final MsgType text
public static final MsgType face
public static final MsgType mface
public static final MsgType marketface
public static final MsgType basketball
public static final MsgType record
public static final MsgType video
public static final MsgType rps
public static final MsgType new_rps
public static final MsgType dice
public static final MsgType new_dice
public static final MsgType shake
public static final MsgType anonymous
public static final MsgType share
public static final MsgType contact
public static final MsgType location
public static final MsgType music
public static final MsgType image
public static final MsgType reply
public static final MsgType redbag
public static final MsgType poke
public static final MsgType gift
public static final MsgType forward
public static final MsgType markdown
public static final MsgType keyboard
public static final MsgType node
public static final MsgType xml
public static final MsgType json
public static final MsgType cardimage
public static final MsgType tts
public static final MsgType longmsg
public static final MsgType unknown
public static MsgType[] values()
for (MsgType c : MsgType.values()) System.out.println(c);
public static MsgType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static MsgType typeOf(java.lang.String type)
public static boolean isValidMsgType(MsgType typeEnum)