package Ġcom . example . and rig int ing . feeds . network Ċ Ċ import Ġcom . example . and rig int ing . feeds . repo . remote . hack er news . H acker News Response Ċ import Ġcom . example . and rig int ing . feeds . repo . remote . news . News Response Ċ import Ġio . reactivex . Observable Ċ import Ġio . reactivex . Single Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠNews Routes Ġ{ ĊĊĠĠĠ Ġ// for Ġnews Ġapi ĊĠĠĠ Ġ@ GET (" v 2 / top - head lines ") ĊĠĠĠ Ġfun ĠgetList Article (@ Query (" country ") Ġcountry Id : ĠString , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Query (" category ") Ġnews Category : ĠString ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ: ĠObservable < Response < News Response >> ĊĊĠĠĠ Ġ@ GET (" v 0 / new stories . json ") ĊĠĠĠ Ġfun Ġget H acker News List Id (): ĠSingle < Response < List < Int >>> ĊĊĠĠĠ Ġ@ GET (" v 0 / item /{ id }. json ") ĊĠĠĠ Ġfun Ġget H acker News Items (@ Path (" id ") ĠitemId : ĠInt ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ: ĠObservable < Response < H acker News Response >> Ċ Ċ }