Last active
October 2, 2021 07:35
-
-
Save a914-gowtham/f4afcfb84f053dfe958b6fa2a2e52ddb to your computer and use it in GitHub Desktop.
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 Message( | |
@PrimaryKey | |
val id: String, | |
var chatUsers: ArrayList<String>, | |
@ServerTimestamp | |
var createdAt: Date?=Date(), | |
var type: String="text",//0=text,1=audio,2=image,3=video,4=file | |
var status: Int=0,//0=sending,1=sent,2=delivered,3=seen,4=failed | |
var textMessage: TextMessage=TextMessage("hello chat"), | |
@ServerTimestamp | |
var deliveryTime: Date?=null, | |
@ServerTimestamp | |
var seenTime: Date?=null, | |
@set:Exclude @get:Exclude | |
var chatUserId: String?=null) | |
data class TextMessage(val text: String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment