package com.ridocula.restdroid.models.viewholders

import android.view.View
import android.widget.TextView
import com.ridocula.restdroid.R
import com.thoughtbot.expandablerecyclerview.models.ExpandableGroup
import com.thoughtbot.expandablerecyclerview.viewholders.GroupViewHolder

/**
 * Created by tbaxter on 7/20/17.
 */
class RequestCollectionViewHolder(itemView: View): GroupViewHolder(itemView) {

    var tvCollectionName: TextView? = null

    init {
        tvCollectionName = itemView.findViewById<TextView>(R.id.tvCollectionName) as TextView
    }

    fun setCollectionName(group: ExpandableGroup<*>) {
        tvCollectionName!!.text = group.title
    }
}