public enum ReceiptState extends java.lang.Enum<ReceiptState>
| Enum Constant and Description |
|---|
DeliveredAsOffline
\~English
Message has been delivered to offline message store.
|
Error
\~English
Message sent before not
Message send unsuccessfully.
|
ReceiptByFriend
Message has been accepted by remote friend via carrier network.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(ReceiptState state)
Get debug description of ReceiptState object
|
java.lang.String |
toString()
Get debug description of ReceiptState object
|
int |
value()
Get receipt state value.
|
static ReceiptState |
valueOf(int state)
Get ReceiptState object from state value.
|
static ReceiptState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReceiptState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReceiptState ReceiptByFriend
public static final ReceiptState DeliveredAsOffline
public static final ReceiptState Error
public static ReceiptState[] values()
for (ReceiptState c : ReceiptState.values()) System.out.println(c);
public static ReceiptState 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 ReceiptState valueOf(int state)
state - The receipt state value.java.lang.IllegalArgumentException - illegal exception.public int value()
public static java.lang.String format(ReceiptState state)
state - The receipt state.public java.lang.String toString()
toString in class java.lang.Enum<ReceiptState>