set Request
Method to set up the request details
Parameters
request Url
: "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
request Url
: "URL" used to make "HTTP" request
method
: method used to make "HTTP" request
payload
: params to insert in the payload for the "HTTP" request
is Json Payload
: 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
request Url
: "URL" used to make "HTTP" request
method
: method used to make "HTTP" request
payload
: the multipart payload of the request