package Ġcom . ed win . rand omp icture . remote Ċ Ċ import Ġcom . ed win . rand omp icture . remote . model . Post Model Ċ import Ġcom . ed win . rand omp icture . remote . model . User Model Ċ import Ġio . reactivex . Single Ċ import Ġokhttp 3 . Multipart Body Ċ import Ġokhttp 3 . RequestBody Ċ import Ġretrofit 2 . http .* Ċ Ċ interface ĠRandom Picture Service Ġ{ ĊĊĠĠĠ Ġ@ GET (" posts /") ĊĠĠĠ Ġfun Ġget Posts (): ĠSingle < List < Post Model >> ĊĊĠĠĠ Ġ@ GET (" posts /") ĊĠĠĠ Ġfun Ġget Post sWith Limit (@ Query (" limit ") Ġlimit : ĠInt ): ĠSingle < List < Post Model >> ĊĊĠĠĠ Ġ@ GET (" posts /") ĊĠĠĠ Ġfun Ġget Posts Start From (@ Query (" start Id ") Ġstart Id : ĠString , Ġ@ Query (" limit ") Ġlimit : ĠInt ): ĠSingle < List < Post Model >> ĊĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST (" post /") ĊĠĠĠ Ġfun Ġpost Post (@ Part Ġfile : ĠMultip art Body . Part , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Part (" text ") Ġcaption : ĠRequest Body , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Part (" timestamp ") Ġcreate TimeStamp : ĠRequest Body ): ĠSingle < Post Model > ĊĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST (" register /") ĊĠĠĠ Ġfun Ġregister (@ Part (" email ") Ġemail : ĠRequest Body , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Part (" name ") Ġname : ĠRequest Body , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Part (" password ") Ġpassword : ĠRequest Body ): ĠSingle < User Model > ĊĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST (" login /") ĊĠĠĠ Ġfun Ġlogin (@ Part (" email ") Ġemail : ĠRequest Body , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Part (" password ") Ġpassword : ĠRequest Body ): ĠSingle < User Model > Ċ }