package Ġcom . nik ita . movies _ shm oo v ies . common . mvp Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . annotation . Id Res Ċ import Ġandroid . view . View Ċ import Ġcom . are l lo mobile . mvp . M vp AppCompatActivity Ċ import Ġcom . nik ita . movies _ shm oo v ies . common . utils .* Ċ import Ġkotlin . properties . ReadOnly Property Ċ import Ġkotlin . properties . ReadWrite Property Ċ Ċ /** Ċ Ġ* ĠBase Ġclass Ġfor Ġapp Ġactivities Ċ Ġ*/ Ċ abstract Ġclass ĠBase M vp Activity < in ĠD > Ġ: ĠM vp AppCompatActivity (), ĠL ce View < D > Ġ{ ĊĠ Ġprotected Ġabstract Ġval Ġlayout : ĠInt ĊĠ Ġprotected Ġval Ġproperty Binder Ġ= ĠProperty Binder () ĊĠ Ġprotected Ġopen Ġval Ġel ce Behavior : ĠL ce Behavior Ġ= ĠBase L ce Behavior ( property Binder ) ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ ĠsetContentView ( layout ) ĊĠĠĠ Ġel ce Behavior . init ( find View ( android . R . id . content )) ĊĠĠĠ Ġinit View () ĊĠ Ġ} ĊĊĠ Ġopen Ġfun Ġinit View () Ġ{} ĊĊĠĠĠ Ġoverride Ġfun Ġset Content ( content : ĠD , Ġpagination : ĠBoolean ) Ġ{ ĊĠĠĠ Ġel ce Behavior . switch To Content () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġswitch To Loading ( pull To Refresh : ĠBoolean ) Ġ{ ĊĠĠĠ Ġel ce Behavior . switch To Loading ( pull To Refresh ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġswitch To Error ( error Desc : ĠError Desc ) Ġ{ ĊĠĠĠ Ġel ce Behavior . switch To Error ( error Desc ) ĊĠ Ġ} ĊĊĠ Ġprotected Ġfun Ġ< VIEW _ TYPE Ġ: ĠView > Ġbind View (@ Id Res Ġid : ĠInt ): ĠReadOnly Property < Activity , ĠVIEW _ TYPE > Ġ= Ġbind View ( property Binder , Ġid ) ĊĠ Ġprotected Ġfun Ġ< VIEW _ TYPE Ġ: ĠView > Ġbind View Opt (@ Id Res Ġid : ĠInt ): ĠReadOnly Property < Activity , ĠVIEW _ TYPE ?> Ġ= Ġbind View Opt ( property Binder , Ġid ) ĊĠ Ġprotected Ġfun Ġ< TYPE Ġ: ĠAny > Ġbind Property (): ĠRead Write Property < Activity , ĠTYPE > Ġ= Ġbind Property ( property Binder ) ĊĠ Ġprotected Ġfun Ġ< TYPE Ġ: ĠAny > Ġbind Property Opt (): ĠRead Write Property < Activity , ĠTYPE ?> Ġ= Ġbind Property Opt ( property Binder ) ĊĊĠ Ġoverride Ġfun Ġon Destroy () Ġ{ ĊĠĠĠ Ġproperty Binder . reset () ĊĠĠĠ Ġsuper . on Destroy () ĊĠ Ġ} Ċ }