package Ġcom . future . movie . network Ċ Ċ import Ġcom . future . movie . db . entity . Movie Detail Entity Ċ import Ġcom . future . movie . db . entity . Movie Entity Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path ĊĊ Ċ interface ĠMovie Api Ġ{ ĊĊĠĠĠ Ġ@ GET (" movie /{ page FileName }") ĊĠĠĠ Ġfun Ġget Movie List (@ Path (" page FileName ") Ġpage FileName : ĠString ): ĠSingle < List < Movie Entity >> ĊĊĠĠĠ Ġ@ GET (" movie / detail /{ detail File }") ĊĠĠĠ Ġfun Ġget Movie Detail (@ Path (" detail File ") Ġdetail File : ĠString ): ĠSingle < Movie Detail Entity > ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġconst Ġval ĠHOST Ġ= Ġ" https :// raw . githubusercontent . com / nah z ur - h / Movie / master / json / api /" ĊĠĠĠ Ġ} Ċ } Ċ