package com.zswc.creativity.adapter

import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.ysnows.base.base.BAdapter
import com.zswc.creativity.R
import com.zswc.creativity.databinding.ItemConsignorderListBinding
import com.zswc.creativity.databinding.ItemOrderListBinding
import com.zswc.creativity.model.MyOrderInfo
import com.zswc.creativity.model.SecondList
import com.zswc.creativity.vmodel.ConsignOrderListFragmentVModel
import com.zswc.creativity.vmodel.OrderListFragmentVModel

class ConsignOrderListFragmentAdapter(val vm: ConsignOrderListFragmentVModel) : BAdapter<SecondList, BaseDataBindingHolder<ItemConsignorderListBinding>>(R.layout.item_consignorder_list) {
    override fun convert(holder: BaseDataBindingHolder<ItemConsignorderListBinding>, item:SecondList) {
        holder.dataBinding?.vm=vm
        holder.dataBinding?.item = item
    }
}
