package Ġcom . applic aster . opt a . stat ss creen plugin . screens . home Ċ Ċ import Ġcom . applic aster . opt a . stat ss creen plugin . data . model . All Matches Model Ċ import Ġcom . applic aster . opt a . stat ss creen plugin . data . model . Group Model Ċ Ċ class ĠHome Presenter ( private Ġvar Ġhome View : ĠHome View ?, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġhome Interactor : ĠHome Interactor ): ĊĠĠĠĠĠĠĠ ĠHome Interactor . On Finished Listener Ġ{ ĊĊĠĠĠ Ġfun Ġget Groups () Ġ{ ĊĠĠĠĠĠĠĠ Ġhome View ?. show Progress () ĊĠĠĠĠĠĠĠ Ġhome Interactor . request Group Cards ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠgetAll Matches From Date () Ġ{ ĊĠĠĠĠĠĠĠ Ġhome View ?. show Progress () ĊĠĠĠĠĠĠĠ Ġhome Interactor . request All Matches ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon Destroy () Ġ{ ĊĠĠĠĠĠĠĠ Ġhome View Ġ= Ġnull ĊĠĠĠĠĠĠĠ Ġhome Interactor . on Destroy () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Get Groups Success ( group Cards : ĠGroup Model . Group ) Ġ{ ĊĠĠĠĠĠĠĠ Ġhome View ?. hide Progress () ĊĠĠĠĠĠĠĠ Ġhome View ?. get Groups Success ( group Cards ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon All Matches Success ( all Matches From Date : ĠAll Matches Model . All Matches ) Ġ{ ĊĠĠĠĠĠĠĠ Ġhome View ?. hide Progress () ĊĠĠĠĠĠĠĠ Ġhome View ?. getAll Matches Success ( all Matches From Date ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Get Groups Fail ( error : ĠString ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġhome View ?. hide Progress () ĊĠĠĠĠĠĠĠ Ġhome View ?. get Groups Fail ( error ) ĊĠĠĠ Ġ} Ċ Ċ }