package Ġcom . yo lo . yo lo _ android . api Ċ Ċ import Ġcom . yo lo . yo lo _ android . Build Config Ċ import Ġcom . yo lo . yo lo _ android . model . K ak ao UserInfo Response Ċ import Ġcom . yo lo . yo lo _ android . model . Key Word Response Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Header Ċ import Ġretrofit 2 . http . Headers Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠK ak ao ApiService Ġ{ ĊĠĠĠ Ġ@ GET (" v 2 / user / me ") ĊĠĠĠ Ġfun Ġget K ak ao UserInfo ( ĊĠĠĠĠĠĠĠ Ġ@ Header (" Authorization ") ĠaccessToken : ĠString ĊĠĠĠ Ġ): ĠSingle < K ak ao UserInfo Response > ĊĊĠĠĠ Ġ@ Headers (" Authorization : Ġ${ Build Config . K AK AO _ REST _ KEY }") ĊĠĠĠ Ġ@ GET (" https :// d api . k ak ao . com / v 2 / local / search / keyword . json ") ĊĠĠĠ Ġsuspend Ġfun Ġsearch Keyword ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" query ") Ġquery : ĠString ĊĠĠĠ Ġ): ĠResponse < Key Word Response > ĊĊĠĠĠ Ġ@ Headers (" Authorization : Ġ${ Build Config . K AK AO _ REST _ KEY }") ĊĠĠĠ Ġ@ GET (" https :// d api . k ak ao . com / v 2 / local / search / category . json ") ĊĠĠĠ Ġsuspend Ġfun Ġsearch Category ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" category _ group _ code ") Ġcategory _ group _ code : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" x ") Ġx : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" y ") Ġy : ĠDouble , ĊĠĠĠĠĠĠĠ Ġ@ Query (" radius ") Ġradius : ĠInt ? Ġ= Ġ 1 0 0 0 0 ĊĠĠĠ Ġ): ĠResponse < Key Word Response > Ċ }