package Ġcom . y od . common . logic Ċ Ċ import Ġandroid . app . Dialog Ċ import Ġandroid . content . Context Ċ import Ġcom . y od . common . Empty Callback Ċ import Ġcom . y od . common . logic . dialog . Loading Dialog Ċ import Ġcom . y od . common . logic . presenter . Def Dialog Presenter Ċ import Ġcom . y od . common . logic . presenter . Def Foot Presenter Ċ import Ġcom . y od . common . logic . presenter . Empty List Presenter Ċ import Ġcom . y od . common . logic . presenter . Empty Message Presenter Ċ import Ġcom . y od . common . ui . Dialog Presenter Ċ import Ġcom . y od . common . ui . Foot Presenter Ċ import Ġcom . y od . common . ui . Message Presenter Ċ import Ġcom . y od . common . widget . Common Loading Layout Ċ Ċ /** Ċ Ġ* Ġ åħ¬ åħ± è§ĨåĽ¾ éĢ»è¾ĳ Ċ Ġ* ĠCreated Ġby Ġtang J Ġon Ġ 2 0 1 7 / 1 1 / 1 4 Ċ Ġ*/ ĊĊ Ċ /** Ċ Ġ* ĠæĮĩå®ļ Ġé»ĺè®¤ Ġpresenter Ċ Ġ*/ Ċ fun ĠCommon Loading Layout . default Presenter () Ġ{ ĊĠ Ġreset Presenter ( Empty Message Presenter ( context )) Ċ } Ċ Ċ /** Ċ Ġ* Ġé»ĺè®¤ Ġdialog Ġpresenter Ċ Ġ*/ Ċ fun Ġget Def Dialog Presenter ( context : ĠContext , Ġdialog : ĠDialog ? Ġ= Ġnull ): ĠDialog Presenter Ġ{ ĊĠ Ġval Ġtarget Dialog Ġ= Ġdialog Ġ?: ĠLoading Dialog ( context ) ĊĠ Ġreturn ĠDef Dialog Presenter ( target Dialog ) Ċ } Ċ Ċ /** Ċ Ġ* Ġlist Ġpresenter Ċ Ġ*/ Ċ fun Ġget Def List Presenter ( context : ĠContext , Ġaction : ĠEmpty Callback ): ĠMessage Presenter Ġ= ĊĠĠĠ ĠEmpty List Presenter ( context , Ġaction ) Ċ Ċ /** Ċ Ġ* Ġfoot Ġpresenter Ċ Ġ*/ Ċ fun Ġget Def Foot Presenter ( context : ĠContext , Ġaction : ĠEmpty Callback ): ĠF oot Presenter Ġ= ĊĠĠĠ ĠDef Foot Presenter ( context , Ġaction )