Skip to content
Snippets Groups Projects
Commit 0847d5a0 authored by Pierre Nicolas's avatar Pierre Nicolas :joy:
Browse files

implement new MessageStates enum

Change-Id: Ia2489e091c0e384a3451579e0b63c68c27807180
parent b35691de
Branches
Tags
No related merge requests found
...@@ -216,6 +216,20 @@ open class Interaction { ...@@ -216,6 +216,20 @@ open class Interaction {
var preview: Any? = null var preview: Any? = null
enum class MessageStates(val value: Int) {
UNKNOWN(0),
SENDING(1),
SUCCESS(2),
DISPLAYED(3),
INVALID(4),
FAILURE(5),
CANCELLED(6);
companion object {
fun fromInt(value: Int) = entries[value]
}
}
enum class InteractionStatus { enum class InteractionStatus {
UNKNOWN, SENDING, SUCCESS, DISPLAYED, INVALID, FAILURE, TRANSFER_CREATED, UNKNOWN, SENDING, SUCCESS, DISPLAYED, INVALID, FAILURE, TRANSFER_CREATED,
TRANSFER_ACCEPTED, TRANSFER_CANCELED, TRANSFER_ERROR, TRANSFER_UNJOINABLE_PEER, TRANSFER_ACCEPTED, TRANSFER_CANCELED, TRANSFER_ERROR, TRANSFER_UNJOINABLE_PEER,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment