public enum MsgType extends Enum<MsgType>
| 枚举常量和说明 |
|---|
event
事件,用于请求
|
image
图片,请求和响应均可
|
link
链接,用于请求
|
location
地理位置,用于请求
|
music
音乐,用于响应
|
news
图文消息,用于响应
|
text
文本,请求和响应均可
|
transfer_customer_service
转移客服消息
|
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 location
public static final MsgType link
public static final MsgType event
public static final MsgType music
public static final MsgType news
public static final MsgType transfer_customer_service
public static MsgType[] values()
for (MsgType c : MsgType.values()) System.out.println(c);
public static MsgType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2020. All Rights Reserved.