public enum RecvMessageType extends Enum<RecvMessageType>
| Enum Constant and Description |
|---|
EVENT
接收到微信服务器的事件消息:
|
IMAGE |
LINK |
LOCATION |
SHORT_VIDEO |
TEXT |
VIDEO |
VOICE |
| Modifier and Type | Method and Description |
|---|---|
String |
desc() |
static RecvMessageType |
from(String type) |
String |
toString() |
String |
value() |
static RecvMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecvMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecvMessageType TEXT
public static final RecvMessageType IMAGE
public static final RecvMessageType VOICE
public static final RecvMessageType VIDEO
public static final RecvMessageType SHORT_VIDEO
public static final RecvMessageType LOCATION
public static final RecvMessageType LINK
public static final RecvMessageType EVENT
RecvEventTypepublic static RecvMessageType[] values()
for (RecvMessageType c : RecvMessageType.values()) System.out.println(c);
public static RecvMessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public String desc()
public static RecvMessageType from(String type)
public String toString()
toString in class Enum<RecvMessageType>Copyright © 2019. All rights reserved.