Files
fast-messenger/app/src/main/kotlin/com/meloda/fast/api/ApiEvent.kt
T
2022-08-30 09:49:52 -07:00

28 lines
610 B
Kotlin

package com.meloda.fast.api
enum class ApiEvent(val value: Int) {
MessageSetFlags(2),
MessageClearFlags(3),
MessageNew(4),
MessageEdit(5),
MessageReadIncoming(6),
MessageReadOutgoing(7),
FriendOnline(8),
FriendOffline(9),
MessagesDeleted(13),
PinUnpinConversation(20),
PrivateTyping(61),
ChatTyping(62),
OneMoreTyping(63),
VoiceRecording(64),
PhotoUploading(65),
VideoUploading(66),
FileUploading(67),
UnreadCountUpdate(80)
;
companion object {
fun parse(value: Int) = values().firstOrNull { it.value == value }
}
}