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, uploadImageProcessAsyncpublic static LiRestv2Client getInstance()
public LiBaseResponse processSync(LiBaseRestRequest baseRestRequest) throws LiRestResponseException
processSync in class LiRestClientbaseRestRequest - LiBaseRestRequestLiBaseResponseLiRestResponseExceptionpublic void processAsync(LiBaseRestRequest baseRestRequest, LiAsyncRequestCallback callBack)
processAsync in class LiRestClientbaseRestRequest - LiBaseRestRequestcallBack - LiAsyncRequestCallbackpublic void uploadProcessAsync(LiBaseRestRequest baseRestRequest, LiAsyncRequestCallback callBack, java.lang.String imagePath, java.lang.String imageName, java.lang.String requestBody)
baseRestRequest - LiBaseRestRequestcallBack - LiAsyncRequestCallbackimagePath - Absolute path of the image file.imageName - Name of the image file.requestBody - request body for post call to upload image.