package Ġbr . com . luc as cor de iro . poke dex . data . network . service Ċ Ċ import Ġbr . com . luc as cor de iro . poke dex . data . network . http client . App HttpClient Ċ import Ġbr . com . luc as cor de iro . poke dex . data . network . model . Pokemon Network Ċ import Ġbr . com . luc as cor de iro . poke dex . data . network . model . Response Pokemon Network Ċ import Ġio . ktor . client . request .* Ċ import Ġkotlinx . coroutines . flow . flow Of Ċ Ċ class ĠPokemon ApiClient Impl ( private Ġval Ġapp HttpClient : ĠApp HttpClient ) Ġ: ĠPokemon ApiClient Ġ{ ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget Pokemon ( ĊĠĠĠĠĠĠĠ Ġoffset : ĠLong , ĊĠĠĠĠĠĠĠ Ġlimit : ĠLong ĊĠĠĠ Ġ) Ġ= Ġflow Of ( app HttpClient . httpClient . get < Response Pokemon Network < Pokemon Network >>( basePath ) Ġ{ ĊĠĠĠĠĠĠĠ Ġparameter (" offset ", Ġoffset ) ĊĠĠĠĠĠĠĠ Ġparameter (" limit ", Ġlimit ) ĊĠĠĠ Ġ}) ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġget Pokemon ById ( id : ĠLong ) Ġ= Ġflow Of ( app HttpClient . httpClient . get < Pokemon Network >(" $ basePath /$ id ")) ĊĊĠĠĠ Ġoverride Ġval ĠbasePath Ġ= Ġ" pokemon " Ċ }