package Ġcom . open class rooms . re ale state manager . view . addProperty Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . ImageView Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġbutter knife . BindView Ċ import Ġbutter knife . B utter Kn ife Ċ import Ġcom . bump tech . glide . Request Manager Ċ import Ġcom . bump tech . glide . request . RequestOptions Ċ import Ġcom . open class rooms . re ale state manager . R Ċ import Ġcom . open class rooms . re ale state manager . data . entity . Agent ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby ĠMut w ak il - Mo ĠðŁ¤ © Ċ Ġ* ĠAndroid ĠEngineer , Ċ Ġ* ĠBr us se ls Ċ Ġ*/ Ċ class ĠList Agent Dialog ViewHolder ( view : ĠView ) Ġ: ĠRecyclerView . ViewHolder ( view ){ ĊĊĠĠĠ Ġ@ BindView ( R . id . list _ agent _ tv _ picture ) Ġlateinit Ġvar Ġpicture Agent : ĠImageView ĊĠĠĠ Ġ@ BindView ( R . id . list _ agent _ tv _ name ) Ġlateinit Ġvar Ġname Agent : ĠTextView ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠB utter Kn ife . bind ( this , Ġview ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġupdate With Agent ( agent : ĠAgent , Ġg lide : ĠRequest Manager ){ ĊĠĠĠĠĠĠĠ Ġval Ġname To Display Ġ= Ġ"${ agent . firstName } Ġ${ agent . lastName }" ĊĠĠĠĠĠĠĠ Ġname Agent . text Ġ= Ġname To Display ĊĊĠĠĠĠĠĠĠ Ġagent . url Profile Picture ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġg lide . load ( it ). apply ( RequestOptions . circle Crop Transform ()). into ( picture Agent ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }