Show list from adapter in Object of Array form
I need to show a list from adapter. I've got the data with calling api, but it can't showed in the interface.
this is data model Table :
data class Table(val id : String, val nama: String, val tersedia: Boolean)
this is data model Tables that contain ArrayList of Table :
data class Tables (val daftarMeja : ArrayList)
this is mu adapter :
class MejaAdapter (private val tableList: ArrayList, private val clickListener: (Table) -> Unit) : RecyclerView.Adapter(){
private lateinit var...