package com.gingersoft.gsa.other_order_mode.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gingersoft.gsa.other_order_mode.R
import com.gingersoft.gsa.other_order_mode.data.model.bean.BtnBuilder

class OrderDetailsAdapter(list: MutableList<BtnBuilder.BtnBean>) : BaseQuickAdapter<BtnBuilder.BtnBean, BaseViewHolder>(R.layout.item_btn, list) {

    override fun convert(holder: BaseViewHolder, item: BtnBuilder.BtnBean) {
        holder.setText(R.id.tv_btn_content, item.btnContent)
        holder.setBackgroundResource(R.id.layout_btn_item, item.btnColor)
        holder.setImageResource(R.id.iv_btn_mark, item.btnImg)
    }


}