app / sg.edu.ntu.scse.cz2006.gymbuddies.adapter / MessageAdapter / MessageReceivedViewHolder

MessageReceivedViewHolder

open class MessageReceivedViewHolder : ViewHolder

View Holder for message sent out from current user, it holds reference to frequent update views and provides helper method to bind data information onto views

Constructors

<init>

Constructor method to initialised MessageReceivedViewHolder

MessageReceivedViewHolder(itemView: View)

Properties

tvContent

var tvContent: TextView!

tvDate

var tvDate: TextView!

tvTime

var tvTime: TextView!

Functions

bind

helper method to update respective view based on data pass over

open fun bind(msg: ChatMessage!, showDate: Boolean): Unit