package com.gingersoft.gsa.delivery_pick_mode.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gingersoft.gsa.cloud.ui.utils.BtnBuilder
import com.gingersoft.gsa.delivery_pick_mode.R

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)
    }
}