Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.50 KB | None | 0 0
  1. fun deleteCustomer(customerId: Long): Observable<Boolean> {
  2.         val url = "${AccurateModule.host}/accurate/api/customer/delete.do"
  3.         val param = Param()
  4.  
  5.         param.addParam("session", AccurateModule.session)
  6.         param.addParam("id", customerId)
  7.         return AccurateModule.postRequest(url, param)
  8.                 .map {
  9.                     val responseBody = JSONObject(it)
  10.                     Timber.d(responseBody.toString(2))
  11.                     true
  12.  
  13.                 }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement