package Ġru . stream . recycler adapters . presentation . view . deleg ated adapter . delegate Ċ Ċ import Ġandroid . view . View Ċ import Ġkotlinx . android . synt hetic . main . view _ track _ intro _ lesson . view .* Ċ import Ġorg . th reet en . bp . format . DateTime Formatter Ċ import Ġru . stream . recycler adapters . R Ċ import Ġru . stream . recycler adapters . core . adapter . Item ViewHolder Ċ import Ġru . stream . recycler adapters . core . adapter . delegate . Base Adapter Delegate Ċ import Ġru . stream . recycler adapters . core . adapter . item . Item Ċ import Ġru . stream . recycler adapters . domain . model . Track Item Ċ Ċ class ĠIntro Lesson Delegate ( private Ġval Ġdate Formatter : ĠDateTime Formatter ) Ġ: Ċ ĉ Base Adapter Delegate < Track Item . Intro Lesson , ĠIntro Lesson Delegate . Intro Lesson Holder >() Ġ{ ĊĊ ĉ override Ġfun Ġis For ViewType ( item : ĠItem ): ĠBoolean Ġ= Ġitem Ġis ĠTrack Item . Intro Lesson ĊĊ ĉ override Ġval Ġlayout Id : ĠInt Ġ= ĠR . layout . view _ track _ intro _ lesson ĊĊ ĉ override Ġfun Ġcreate ViewHolder ( view : ĠView ): ĠIntro Lesson Holder Ġ= ĠIntro Lesson Holder ( view ) ĊĊ ĉ inner Ġclass ĠIntro Lesson Holder ( view : ĠView ) Ġ: ĠItem ViewHolder < Track Item . Intro Lesson >( view ) Ġ{ ĊĊĉ ĉ override Ġfun Ġon Bind Item ( item : ĠTrack Item . Intro Lesson ) Ġ{ Ċĉĉ ĉ item View . text Title . text Ġ= Ġitem . title Ċĉĉ ĉ item View . text Teacher . text Ġ= Ġitem . teacher Name Ċĉĉ ĉ item View . text Date . text Ġ= Ġdate Formatter . format ( item . date ) Ċĉ ĉ } Ċ ĉ } Ċ }