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

import android.view.LayoutInflater
import android.view.ViewGroup
import com.adealink.weparty.im.databinding.LayoutSessionMessageOfficialBaseBinding
import com.adealink.weparty.im.databinding.LayoutSessionMessagePlaymateOrderBinding
import com.adealink.weparty.im.session.mesasge.PlaymateOrderMessageBean
import com.tencent.qcloud.tuikit.timcommon.interfaces.OnItemClickListener

/**
 * 对照: TextMessageHolder
 */
class PlaymateOrderMessageViewHolder(
    rootBinding: LayoutSessionMessageOfficialBaseBinding,
    binding: LayoutSessionMessagePlaymateOrderBinding
) : CenterMessageViewHolder<PlaymateOrderMessageBean, LayoutSessionMessagePlaymateOrderBinding>(
    rootBinding,
    binding
) {

    override fun onBindMessage(
        binding: LayoutSessionMessagePlaymateOrderBinding,
        msg: PlaymateOrderMessageBean
    ) {

    }

}

class PlaymateOrderMessageViewBinder(
    onItemClickListener: OnItemClickListener
) : BaseCenterMessageViewBinder<PlaymateOrderMessageBean, LayoutSessionMessagePlaymateOrderBinding, PlaymateOrderMessageViewHolder>(
    onItemClickListener
) {
    override fun onCreateMessageHolder(
        rootBinder: LayoutSessionMessageOfficialBaseBinding,
        inflater: LayoutInflater,
        parent: ViewGroup
    ): PlaymateOrderMessageViewHolder {
        return PlaymateOrderMessageViewHolder(
            rootBinder,
            LayoutSessionMessagePlaymateOrderBinding.inflate(
                inflater,
                parent,
                true
            )
        )
    }

}