2018-10-28 18:18:14 +00:00
|
|
|
package im.vector.riotredesign.features.home.detail
|
2018-10-19 13:30:40 +00:00
|
|
|
|
|
|
|
import android.widget.TextView
|
|
|
|
import im.vector.riotredesign.R
|
|
|
|
import im.vector.riotredesign.core.epoxy.KotlinModel
|
|
|
|
|
|
|
|
data class TimelineEventItem(
|
|
|
|
val title: String,
|
|
|
|
val listener: (() -> Unit)? = null
|
|
|
|
) : KotlinModel(R.layout.item_event) {
|
|
|
|
|
|
|
|
val titleView by bind<TextView>(R.id.titleView)
|
|
|
|
|
|
|
|
override fun bind() {
|
|
|
|
titleView.setOnClickListener { listener?.invoke() }
|
|
|
|
titleView.text = title
|
|
|
|
}
|
|
|
|
}
|