VideoAttachmentViewModel.kt 812 Bytes
Newer Older
1 2 3
package chat.rocket.android.chatroom.viewmodel

import chat.rocket.android.R
4
import chat.rocket.core.model.Message
5 6 7
import chat.rocket.core.model.attachment.VideoAttachment

data class VideoAttachmentViewModel(
8
        override val message: Message,
9 10 11 12
        override val rawData: VideoAttachment,
        override val messageId: String,
        override val attachmentUrl: String,
        override val attachmentTitle: CharSequence,
13
        override val id: Long,
14 15
        override var reactions: List<ReactionViewModel>,
        override var nextDownStreamMessage: BaseViewModel<*>? = null
16 17 18 19 20 21
) : BaseFileAttachmentViewModel<VideoAttachment> {
    override val viewType: Int
        get() = BaseViewModel.ViewType.VIDEO_ATTACHMENT.viewType
    override val layoutId: Int
        get() = R.layout.message_attachment
}