-
-
Save mooner1022/4473bc39241a9b4af6ebf44fb17a2f26 to your computer and use it in GitHub Desktop.
MessageEvent.kt Implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class MessageEvent( | |
val message : String, | |
val image : Bitmap?, | |
val sender : ChatSender, | |
val room : ChatRoom, | |
val packageName : String, | |
val hasMention : Boolean, | |
val chatLogId : Long, | |
) | |
interface ChatRoom { | |
val id: String | |
val name: String | |
val isGroupChat: Boolean | |
val isDebugRoom: Boolean | |
fun send(message: String): Boolean | |
fun markAsRead(): Boolean | |
} | |
data class ChatSender( | |
val name : String, | |
val id : String?, | |
val profileBitmap : Bitmap | |
val profileBase64 : String, | |
val profileHash : Int | |
) |
Author
mooner1022
commented
Sep 9, 2021
•
room session은 ChatRoom 객체에 종속됨, send()나 markAsRead() 호출시 ChatRoom 객체 내의 session으로 처리
image : Bitmap?
은 혹시 루팅을 해야 가져올 수 있을까요?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment