package Ġcom . yo es uv . inf omal ang bat u . networks Ċ Ċ import Ġcom . yo es uv . inf omal ang bat u . menu . gallery . models . Gallery Model Ċ import Ġcom . yo es uv . inf omal ang bat u . menu . list place . models . Place Model Ċ import Ġcom . yo es uv . inf omal ang bat u . menu . maps . models . Pin Model Ċ import Ġkotlinx . coroutines . Coroutine Scope Ċ import Ġkotlinx . coroutines . launch Ċ Ċ class ĠApp Repository ( private Ġval Ġcoroutine Scope : ĠCor outine Scope ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġrest Api Ġ= ĠService Factory . create () ĊĊĠĠĠ Ġfun Ġget AppData ( on Success :( Mutable List < Place Model > ?, ĠMutable List < Gallery Model > ?, ĠMutable List < Pin Model > ?) Ġ-> ĠUnit , ĠonError :( Throwable ) Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcoroutine Scope . launch Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġresult List Place Ġ= Ġrest Api . getList Place () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġresult Gallery Ġ= Ġrest Api . get Gallery () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġresult Map P ins Ġ= Ġrest Api . getMap P ins () ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠonSuccess ( result List Place . body (), Ġresult Gallery . body (), Ġresult Map P ins . body ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( throwable : ĠThrowable ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠonError ( throwable ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }