package Ġse . slot te . l ud w ig . reddit pict ur ere ader . picture _ feed Ċ Ċ import Ġse . slot te . l ud w ig . reddit pict ur ere ader . picture _ feed . data . Fetch All Data Ċ import Ġse . slot te . l ud w ig . reddit pict ur ere ader . picture _ feed . data . Fetch Data Callback Ċ import Ġse . slot te . l ud w ig . reddit pict ur ere ader . picture _ feed . data . model . Children Ċ Ċ class ĠPicture Presenter ( val Ġview : ĠPicture View ) Ġ: ĠFetch Data Callback Ġ{ ĊĠĠĠ Ġprivate Ġval Ġfetch All Data Presenter Ġ= ĠFetch All Data () ĊĊĠĠĠ Ġfun Ġinit (){ ĊĠĠĠĠĠĠĠ Ġview . setOn Error ClickListener () ĊĠĠĠĠĠĠĠ Ġfetch Photos () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġfetch Photos () Ġ{ ĊĠĠĠĠĠĠĠ Ġview . start Loading () ĊĠĠĠĠĠĠĠ Ġfetch All Data Presenter . fetch Photos ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonComplete ( success : ĠList < Children > ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġview . on Success ( success ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Network Error () Ġ{ ĊĠĠĠĠĠĠĠ Ġview . on Network Error () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon General Error () Ġ{ ĊĠĠĠĠĠĠĠ Ġview . on General Error () ĊĠĠĠ Ġ} Ċ } Ċ