package Ġapp . th dev . photos ample . network Ċ Ċ import Ġapp . th dev . photos ample . Build Config Ċ import Ġapp . th dev . photos ample . data . Photo Response Ċ import Ġio . reactivex . rx java 3 . core . Flow able Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Query Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠT ae - hw an Ġon Ġ 7 / 2 2 / 1 6 . Ċ Ġ*/ Ċ interface ĠF lickr Service Interface Ġ{ ĊĊĠĠĠ Ġ@ POST (" ? method = flickr . interest ing ness . getList & format = json & no json callback = 1 & api _ key =${ Build Config . F LIC KR _ API _ KEY }") ĊĠĠĠ Ġfun Ġget F lickr Recent Photos ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" page ") Ġpage : ĠInt ĊĠĠĠ Ġ): ĠFlow able < Photo Response > ĊĊĠĠĠ Ġ@ POST (" ? method = flickr . photos . search & format = json & no json callback = 1 & api _ key =${ Build Config . F LIC KR _ API _ KEY }") ĊĠĠĠ Ġfun Ġget F lickr Photos Search ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" page ") Ġpage : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Query (" safe _ search ") Ġsafe Search : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ Query (" text ") Ġtext : ĠString ĊĠĠĠ Ġ): ĠFlow able < Photo Response > Ċ } Ċ