package Ġorg . step ik . android . view . user _ reviews . ui . adapter . delegate Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġkotlinx . android . extensions . Layout Container Ċ import Ġkotlinx . android . synt hetic . main . item _ user _ review _ review ed _ header .* Ċ import Ġorg . step ic . d roid . R Ċ import Ġorg . step ik . android . domain . user _ reviews . model . User Course Review Item Ċ import Ġru . nob ird . android . ui . adapter deleg ates . Adapter Delegate Ċ import Ġru . nob ird . android . ui . adapter deleg ates . Delegate ViewHolder Ċ Ċ class ĠUser Reviews Reviewed Header Adapter Delegate Ġ: ĠAdapter Delegate < User Course Review Item , ĠDelegate ViewHolder < User Course Review Item >>() Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġis For ViewType ( position : ĠInt , Ġdata : ĠUser Course Review Item ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġdata Ġis ĠUser Course Review Item . Reviewed Header ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup ): ĠDelegate ViewHolder < User Course Review Item > Ġ= ĊĠĠĠĠĠĠĠ ĠViewHolder ( create View ( parent , ĠR . layout . item _ user _ review _ review ed _ header )) ĊĊĠĠĠ Ġprivate Ġclass ĠViewHolder ( override Ġval Ġcontainer View : ĠView ) Ġ: ĠDelegate ViewHolder < User Course Review Item >( container View ), ĠLayout Container Ġ{ ĊĠĠĠĠĠĠĠ Ġoverride Ġfun Ġon Bind ( data : ĠUser Course Review Item ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdata Ġas ĠUser Course Review Item . Reviewed Header ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreviewed Text . text Ġ= Ġcontext . resources . get Quantity String ( R . plurals . learning _ action _ review , Ġdata . review ed Count , Ġdata . review ed Count ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }