package com.adealink.weparty.im.session.adapter.viewbinder

import android.view.LayoutInflater
import android.view.ViewGroup
import com.adealink.weparty.im.databinding.LayoutSessionMessageCenterBaseBinding
import com.adealink.weparty.im.databinding.LayoutSessionMessageUnsupportBinding
import com.adealink.weparty.im.session.adapter.data.UnSupportMessageBean
import com.tencent.qcloud.tuikit.timcommon.interfaces.OnItemClickListener

/**
 * 对照: UnSupportMessageBean
 */

class UnSupportMessageViewHolder(
    rootBinding: LayoutSessionMessageCenterBaseBinding,
    binding: LayoutSessionMessageUnsupportBinding
) : CenterMessageViewHolder<UnSupportMessageBean, LayoutSessionMessageUnsupportBinding>(
    rootBinding,
    binding
) {

    override fun onBindMessage(
        binding: LayoutSessionMessageUnsupportBinding,
        msg: UnSupportMessageBean
    ) {

    }

}


class UnSupportMessageViewBinder(
    onItemClickListener: OnItemClickListener
) : BaseCenterMessageViewBinder<UnSupportMessageBean, LayoutSessionMessageUnsupportBinding, UnSupportMessageViewHolder>(
    onItemClickListener
) {
    override fun onCreateMessageHolder(
        rootBinder: LayoutSessionMessageCenterBaseBinding,
        inflater: LayoutInflater,
        parent: ViewGroup
    ): UnSupportMessageViewHolder {
        return UnSupportMessageViewHolder(
            rootBinder,
            LayoutSessionMessageUnsupportBinding.inflate(
                inflater,
                parent,
                true
            )
        )
    }


}