public enum MsgType extends Enum<MsgType>
| 枚举常量和说明 |
|---|
EVENT
事件类型
|
IMAGE
图片类型
|
LINK
链接类型
|
LOCATION
地理位置类型
|
MUSIC
音乐类型
|
NEWS
图文新闻类型
|
SHORTVIDEO
小视频类型
|
TEXT
文本类型
|
Video
语音消息
|
VIDEO
视频消息
|
VOICE
语音类型
|
public static final MsgType TEXT
public static final MsgType IMAGE
public static final MsgType VOICE
public static final MsgType VIDEO
public static final MsgType SHORTVIDEO
public static final MsgType LOCATION
public static final MsgType LINK
public static final MsgType MUSIC
public static final MsgType EVENT
public static final MsgType Video
public static final MsgType NEWS
public static MsgType[] values()
for (MsgType c : MsgType.values()) System.out.println(c);
public static MsgType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2017. All rights reserved.