Package org.linphone.core
Enum Class ChatMessage.State
- All Implemented Interfaces:
Serializable
,Comparable<ChatMessage.State>
,Constable
- Enclosing interface:
- ChatMessage
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMessage successfully delivered and acknowledged by the server.Message successfully delivered an acknowledged by the remote user.Message successfully displayed to the remote user.File transfer has been completed successfully.Message was received and acknowledged but cannot get file from server.File transfer is in progress.Initial state.Delivery in progress.Message was not delivered. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChatMessage.State
fromInt
(int value) int
toInt()
static ChatMessage.State
Returns the enum constant of this class with the specified name.static ChatMessage.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Idle
Initial state.
-
InProgress
Delivery in progress.
-
Delivered
Message successfully delivered and acknowledged by the server.
-
NotDelivered
Message was not delivered.
-
FileTransferError
Message was received and acknowledged but cannot get file from server.
-
FileTransferDone
File transfer has been completed successfully.
-
DeliveredToUser
Message successfully delivered an acknowledged by the remote user.
-
Displayed
Message successfully displayed to the remote user.
-
FileTransferInProgress
File transfer is in progress.
If message is incoming it's a download, otherwise it's an upload.
-
-
Field Details
-
mValue
protected final int mValue
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
- Throws:
RuntimeException
-
toInt
public int toInt()
-