package Ġcom . example . these us . movie app . data . api Ċ Ċ import Ġcom . example . these us . movie app . Build Config Ċ import Ġcom . example . these us . movie app . data . api . model . Movie Detail Response . Movie Detail Response Ċ import Ġcom . example . these us . movie app . data . api . model . Top R ated Movie Response . Movie Response Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path Ċ Ċ interface ĠMov ies Db API Ġ{ ĊĊĠĠĠ Ġ@ GET (" top _ r ated ? api _ key =${ Build Config . API _ KEY }& language = en - US ") ĊĠĠĠ Ġfun Ġget Top R ated Movies (): ĠSingle < Movie Response > ĊĊĠĠĠ Ġ@ GET ("{ movie _ id }? api _ key =${ Build Config . API _ KEY }") ĊĠĠĠ Ġfun Ġget Movie Detail (@ Path (" movie _ id ") Ġmovie _ id : ĠString ): ĠSingle < Movie Detail Response > Ċ }