public static enum ChatMessage.State extends java.lang.Enum<ChatMessage.State>
Enum Constant | Description |
---|---|
Delivered |
Message successfully delivered and acknowledged by the server.
|
DeliveredToUser |
Message successfully delivered an acknowledged by the remote user.
|
Displayed |
Message successfully displayed to the remote user.
|
FileTransferDone |
File transfer has been completed successfully.
|
FileTransferError |
Message was received and acknowledged but cannot get file from server.
|
FileTransferInProgress |
File transfer is in progress.
|
Idle |
Initial state.
|
InProgress |
Delivery in progress.
|
NotDelivered |
Message was not delivered.
|
Modifier and Type | Field | Description |
---|---|---|
protected int |
mValue |
Modifier and Type | Method | Description |
---|---|---|
static ChatMessage.State |
fromInt(int value) |
|
int |
toInt() |
|
static ChatMessage.State |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ChatMessage.State[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatMessage.State Idle
public static final ChatMessage.State InProgress
public static final ChatMessage.State Delivered
public static final ChatMessage.State NotDelivered
public static final ChatMessage.State FileTransferError
public static final ChatMessage.State FileTransferDone
public static final ChatMessage.State DeliveredToUser
public static final ChatMessage.State Displayed
public static final ChatMessage.State FileTransferInProgress
public static ChatMessage.State[] values()
for (ChatMessage.State c : ChatMessage.State.values()) System.out.println(c);
public static ChatMessage.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ChatMessage.State fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()