public class LiRestv2Client extends LiRestClient
SERVER_TIMEOUT, TOKEN_REFRESH_TAG
Modifier and Type | Method and Description |
---|---|
static LiRestv2Client |
getInstance()
Returns a singleton instance of this class.
|
void |
processAsync(LiBaseRestRequest baseRestRequest,
LiAsyncRequestCallback callBack)
Makes Async call.
|
LiBaseResponse |
processSync(LiBaseRestRequest baseRestRequest)
Makes Sync call.
|
void |
uploadProcessAsync(LiBaseRestRequest baseRestRequest,
LiAsyncRequestCallback callBack,
java.lang.String imagePath,
java.lang.String imageName,
java.lang.String requestBody)
Makes Async call for uploading an image.
|
asBytes, asJSONObject, asString, buildRequest, consume, getGson, uploadImageProcessAsync
public static LiRestv2Client getInstance()
public LiBaseResponse processSync(LiBaseRestRequest baseRestRequest) throws LiRestResponseException
processSync
in class LiRestClient
baseRestRequest
- LiBaseRestRequest
LiBaseResponse
LiRestResponseException
public void processAsync(LiBaseRestRequest baseRestRequest, LiAsyncRequestCallback callBack)
processAsync
in class LiRestClient
baseRestRequest
- LiBaseRestRequest
callBack
- LiAsyncRequestCallback
public void uploadProcessAsync(LiBaseRestRequest baseRestRequest, LiAsyncRequestCallback callBack, java.lang.String imagePath, java.lang.String imageName, java.lang.String requestBody)
baseRestRequest
- LiBaseRestRequest
callBack
- LiAsyncRequestCallback
imagePath
- Absolute path of the image file.imageName
- Name of the image file.requestBody
- request body for post call to upload image.