public enum MsgType extends Enum<MsgType>
| Enum Constant and Description |
|---|
IMAGE
图片
|
TEXT
文字
|
THIRD
第三方应用消息(链接消息)
|
UNKNOWN
未知
|
VIDEO
视频
|
VOICE
语音
|
| Modifier and Type | Method and Description |
|---|---|
static MsgType |
from(Integer s) |
Integer |
value() |
static MsgType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MsgType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MsgType UNKNOWN
public static final MsgType TEXT
public static final MsgType IMAGE
public static final MsgType VOICE
public static final MsgType VIDEO
public static final MsgType THIRD
public static MsgType[] values()
for (MsgType c : MsgType.values()) System.out.println(c);
public static MsgType 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 Integer value()
Copyright © 2019. All rights reserved.