package chat.rocket.android.chatroom.uimodel

import chat.rocket.android.R
import chat.rocket.core.model.Message
import chat.rocket.core.model.url.Url

data class UrlPreviewUiModel(
        override val message: Message,
        override val rawData: Url,
        override val messageId: String,
        val title: CharSequence?,
        val hostname: String,
        val description: CharSequence?,
        val thumbUrl: String?,
        override var reactions: List<ReactionUiModel>,
        override var nextDownStreamMessage: BaseUiModel<*>? = null,
        override var preview: Message? = null,
        override var isTemporary: Boolean = false
) : BaseUiModel<Url> {
    override val viewType: Int
        get() = BaseUiModel.ViewType.URL_PREVIEW.viewType
    override val layoutId: Int
        get() = R.layout.message_url_preview
}