|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MessageType>
com.foxinmy.weixin4j.type.MessageType
public enum MessageType
消息类型
| Enum Constant Summary | |
|---|---|
event
事件消息 |
|
image
图片消息 |
|
link
链接消息 |
|
location
位置消息 |
|
shortvideo
小视频消息 |
|
text
文字消息 |
|
video
视频消息 |
|
voice
语音消息 |
|
| Method Summary | |
|---|---|
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MessageType text
TextMessagepublic static final MessageType image
ImageMessagepublic static final MessageType voice
VoiceMessagepublic static final MessageType video
VideoMessagepublic static final MessageType shortvideo
VideoMessagepublic static final MessageType location
LocationMessagepublic static final MessageType link
LinkMessagepublic static final MessageType event
EventMessage| Method Detail |
|---|
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||