MessageReplyUiModel.kt 938 Bytes
Newer Older
1
package chat.rocket.android.chatroom.uimodel
2 3 4 5 6

import chat.rocket.android.R
import chat.rocket.android.chatroom.domain.MessageReply
import chat.rocket.core.model.Message

7
data class MessageReplyUiModel(
8 9
    override val rawData: MessageReply,
    override val messageId: String,
10 11
    override var reactions: List<ReactionUiModel>,
    override var nextDownStreamMessage: BaseUiModel<*>?,
12 13
    override var preview: Message?,
    override var isTemporary: Boolean = false,
14
    override val message: Message,
15
    override var unread: Boolean? = null,
16 17
    override var menuItemsToHide: MutableList<Int> = mutableListOf(),
    override var currentDayMarkerText: String,
18 19
    override var showDayMarker: Boolean,
    override var permalink: String
20
) : BaseUiModel<MessageReply> {
21
    override val viewType: Int
22
        get() = BaseUiModel.ViewType.MESSAGE_REPLY.viewType
23 24 25
    override val layoutId: Int
        get() = R.layout.item_message_reply
}