package Ġcom . jin woo . with github . data . remote . client Ċ Ċ import Ġcom . jin woo . with github . data . entity . Person Data Ċ import Ġcom . jin woo . with github . data . entity . Profile Data Ċ import Ġcom . jin woo . with github . data . entity . Repo Data Ċ import Ġcom . jin woo . with github . data . remote . api . Api Ċ import Ġio . reactivex . Flow able Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ Ċ class ĠApi Client ( val Ġapi : ĠApi ) Ġ{ ĊĠĠĠ Ġfun ĠgetUser Repo List ( userName : ĠString ): ĠFlow able < ArrayList < Repo Data >> Ġ= ĊĠĠĠĠĠĠĠ Ġapi . getUser Repo List ( userName ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) ĊĊĠĠĠ Ġfun ĠgetUser Profile ( userName : ĠString ): ĠFlow able < Profile Data > Ġ= ĊĠĠĠĠĠĠĠ Ġapi . getUser Profile ( userName ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) ĊĊĠĠĠ Ġfun ĠgetUser Follower List ( userName : ĠString ): ĠFlow able < ArrayList < Person Data >> Ġ= ĊĠĠĠĠĠĠĠ Ġapi . getUser Follower List ( userName ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) ĊĊĠĠĠ Ġfun ĠgetUser Following List ( userName : ĠString ): ĠFlow able < ArrayList < Person Data >> Ġ= ĊĠĠĠĠĠĠĠ Ġapi . getUser Following List ( userName ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) Ċ }