package Ġcom . j ero en m ols . snap . source . unsplash . api Ċ Ċ import Ġcom . j ero en m ols . snap . Build Config Ċ import Ġcom . j ero en m ols . snap . source . unsplash . data . Un splash SearchResult Ċ import Ġcom . j ero en m ols . snap . source . unsplash . data . Un splash Photo Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Headers Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠUn splash Service Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠBASE _ URL Ġ= Ġ" https :// api . unsplash . com " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Headers (" Authorization : ĠClient - ID Ġ${ Build Config . UN SPL ASH _ API _ KEY }") ĊĠĠĠ Ġ@ GET (" photos ? per _ page = 1 0 0 ") ĊĠĠĠ Ġfun Ġget Photos (): ĠSingle < List < Un splash Photo >> ĊĊĠĠĠ Ġ@ Headers (" Authorization : ĠClient - ID Ġ${ Build Config . UN SPL ASH _ API _ KEY }") ĊĠĠĠ Ġ@ GET (" search / photos ? per _ page = 1 0 0 ") ĊĠĠĠ Ġfun Ġsearch Photos (@ Query (" query ") Ġsearch Term : ĠString ): ĠSingle < Un splash SearchResult > Ċ }