package Ġcom . github . ht d ang k ho a . clean architecture . data . repository Ċ Ċ import Ġcom . github . ht d ang k ho a . clean architecture . base . Base Repository Imp Ċ import Ġcom . github . ht d ang k ho a . clean architecture . data . model . Banner Model Ċ import Ġcom . github . ht d ang k ho a . clean architecture . data . model . Flash Deal Model Ċ import Ġcom . github . ht d ang k ho a . clean architecture . data . model . Quick Link Model Ċ import Ġcom . github . ht d ang k ho a . clean architecture . data . service . ApiService Ċ Ċ class ĠRepository Imp ( ĊĠĠĠ Ġapi Service : ĠApi Service Ċ ) Ġ: ĠBase Repository Imp ( api Service ), ĠRepository Ġ{ ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget B anners And Quick Links (): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult < Pair < List < Banner Model ? >, ĠList < List < Quick Link Model >>>> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġres : ĠPair < Mutable List < Banner Model ? >, ĠMutable List < List < Quick Link Model >>> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ= ĠPair ( mutable ListOf (), Ġmutable ListOf ()) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġres B anners Ġ= Ġapi Service . getB anners () ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġres . first . addAll ( res B anners . data ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġres Quick Links Ġ= Ġapi Service . get Quick Links () ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġres . second . addAll ( res Quick Links . data ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult . success ( res ) ĊĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( e : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult . failure ( e ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget Flash De als (): ĠResult < List < Flash Deal Model >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġres Ġ= Ġapi Service . get Flash De als (); ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult . success ( res . data ) ĊĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( e : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult . failure ( e ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }