package Ġcom . example . android . data . remote ĊĊ Ċ import Ġio . reactivex . Single Ċ import Ġokhttp 3 . Multipart Body Ċ import Ġokhttp 3 . RequestBody Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Multipart Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Part Ċ Ċ interface ĠCh ief Inspector Api Ġ{ ĊĊĠ Ġ@ Multipart Ċ Ġ// Ġ@ POST (" image / add ") ĊĠ Ġ@ POST (" pred / img ") ĊĠ Ġfun Ġupload Image (@ Part Ġ Ġimage : ĠMultip art Body . Part ,@ Part (" name ") Ġ Ġname : ĠRequest Body ): ĠSingle < String > ĊĊ Ġ@ GET (" inspection / new ") Ċ Ġfun Ġrequest New () Ġ: Ġ ĠSingle < String > ĊĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġval ĠBASE _ URL Ġ= Ġ" https :// ch ief inspector . my blue mix . net / rest / main /" ĊĠ Ġ} ĊĊ Ċ }