setRequest

private open fun setRequest(requestUrl: String, method: APIRequest.RequestMethod)

Method to set up the request details

Parameters

requestUrl

: "URL" used to make "HTTP" request

method

: method used to make "HTTP" request


private open fun setRequest(requestUrl: String, method: APIRequest.RequestMethod, payload: APIRequest.Params, isJsonPayload: Boolean)

Method to set up the request details

Parameters

requestUrl

: "URL" used to make "HTTP" request

method

: method used to make "HTTP" request

payload

: params to insert in the payload for the "HTTP" request

isJsonPayload

: flag whether payload is to send formatted in "JSON" or not


private open fun setRequest(requestUrl: String, method: APIRequest.RequestMethod, payload: MultipartBody)

Method to set up the request details

Parameters

requestUrl

: "URL" used to make "HTTP" request

method

: method used to make "HTTP" request

payload

: the multipart payload of the request