All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.sceyt.chatuikit.persistence.entity.messages.DraftMessageDb.kt Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package com.sceyt.chatuikit.persistence.entity.messages

import androidx.room.Embedded
import androidx.room.Junction
import androidx.room.Relation
import com.sceyt.chatuikit.persistence.entity.user.UserDb
import com.sceyt.chatuikit.persistence.entity.user.UserEntity

data class DraftMessageDb(
        @Embedded
        val draftMessageEntity: DraftMessageEntity,

        @Relation(parentColumn = "chatId", entityColumn = "user_id",
            entity = UserEntity::class,
            associateBy = Junction(DraftMessageUserLink::class), )
        val mentionUsers: List?,

        @Relation(parentColumn = "replyOrEditMessageId", entityColumn = "message_id", entity = MessageEntity::class)
        val replyOrEditMessage: MessageDb?
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy