ImageAttachmentViewModel.kt 685 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.ImageAttachment

data class ImageAttachmentViewModel(
8
        override val message: Message,
9 10 11 12 13 14 15 16 17 18 19
        override val rawData: ImageAttachment,
        override val messageId: String,
        override val attachmentUrl: String,
        override val attachmentTitle: CharSequence,
        override val id: Long
) : BaseFileAttachmentViewModel<ImageAttachment> {
    override val viewType: Int
        get() = BaseViewModel.ViewType.IMAGE_ATTACHMENT.viewType
    override val layoutId: Int
        get() = R.layout.message_attachment
}