public static enum Message.SentStatus extends java.lang.Enum<Message.SentStatus>
枚举常量和说明 |
---|
CANCELED
对方已取消
|
DESTROYED
对方已销毁。
|
FAILED
发送失败。
|
READ
对方已读。
|
RECEIVED
对方已接收。
|
SENDING
发送中。
|
SENT
已发送。
|
限定符和类型 | 方法和说明 |
---|---|
int |
getValue()
获取消息发送状态的值。
|
static Message.SentStatus |
setValue(int code)
设置消息发送状态。
|
static Message.SentStatus |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Message.SentStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Message.SentStatus SENDING
public static final Message.SentStatus FAILED
public static final Message.SentStatus SENT
public static final Message.SentStatus RECEIVED
public static final Message.SentStatus READ
public static final Message.SentStatus DESTROYED
public static final Message.SentStatus CANCELED
public static Message.SentStatus[] values()
for (Message.SentStatus c : Message.SentStatus.values()) System.out.println(c);
public static Message.SentStatus valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getValue()
public static Message.SentStatus setValue(int code)
code
- 消息发送状态的值。