forked from melod1n/fast-messenger
7a99347841
Global update
28 lines
610 B
Kotlin
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 }
|
|
}
|
|
|
|
} |