package Ġhu . nap ir aj z . android . rest Ċ Ċ import Ġhu . nap ir aj z . android . response . N ap ir aj z Response Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Query Ċ import Ġrx . Observable Ċ Ċ interface ĠN ap ir aj z Rest Ġ{ ĊĊĠĠĠ Ġ@ GET (" abort . php ? g up pi & json ") ĊĠĠĠ Ġfun Ġrandom (): ĠObservable < N ap ir aj z Response > ĊĊĠĠĠ Ġ@ GET (" abort . php ") ĊĠĠĠ Ġfun Ġdaily (@ Query (" tol ") Ġtol : ĠString , Ġ@ Query (" ig ") Ġig : ĠString , Ġ@ Query (" n ") Ġn : ĠInt Ġ= Ġ 1 , Ġ@ Query (" json ") Ġjson : ĠString Ġ= Ġ"") : ĠObservable < N ap ir aj z Response > ĊĊĠĠĠ Ġ@ POST (" abort . php ") ĊĠĠĠ Ġfun Ġsearch (@ Query (" q ") Ġq : ĠString , Ġ@ Query (" json ") Ġjson : ĠString Ġ= Ġ"") : ĠObservable < N ap ir aj z Response > Ċ Ċ } Ċ