public class LiBaseDeleteClient
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
lithium.community.android.sdk.api.LiBaseClient.RequestType
Enum to classify Request Type
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
basePath |
protected android.content.Context |
context |
protected LiQueryOrdering |
liQueryOrdering |
protected LiQueryRequestParams |
liQueryRequestParams |
protected LiRestV2Request |
liRestV2Request |
protected java.lang.String |
querySettingsType |
protected lithium.community.android.sdk.api.LiBaseClient.RequestType |
requestType |
protected java.lang.String |
type |
Constructor and Description |
---|
LiBaseDeleteClient(android.content.Context context,
java.lang.String basePath) |
Modifier and Type | Method and Description |
---|---|
Gson |
getGson()
Fetches Gson from
LiRestv2Client
LiClient.getGson() |
java.lang.String |
getRequestBody() |
lithium.community.android.sdk.api.LiBaseClient.RequestType |
getRequestType()
Method to get Request Type
|
java.lang.String |
getType()
Returns type i.e whether message, image, kudo etc..
|
void |
processAsync(LiAsyncRequestCallback liAsyncRequestCallback)
This method is for making an async network call.
|
void |
processAsync(LiAsyncRequestCallback liAsyncRequestCallback,
java.lang.String imagePath,
java.lang.String imageName)
processSync call to upload files
|
LiClientResponse |
processSync()
This method is for making a sync network call.
|
void |
setLiRestV2Request()
Abstract method to set LiRestV2Request which will be passed as parameter in
LiRestv2Client.processSync(LiBaseRestRequest) and
LiRestv2Client.processAsync(LiBaseRestRequest, LiAsyncRequestCallback) call. |
LiClient |
setOrdering(LiQueryOrdering liQueryOrdering)
Use to set liQueryOrdering in LIQL if any
|
protected final java.lang.String type
protected java.lang.String querySettingsType
protected android.content.Context context
protected LiRestV2Request liRestV2Request
protected java.lang.String basePath
protected lithium.community.android.sdk.api.LiBaseClient.RequestType requestType
protected LiQueryOrdering liQueryOrdering
protected LiQueryRequestParams liQueryRequestParams
public LiBaseDeleteClient(android.content.Context context, java.lang.String basePath) throws LiRestResponseException
LiRestResponseException
public void setLiRestV2Request()
LiRestv2Client.processSync(LiBaseRestRequest)
and
LiRestv2Client.processAsync(LiBaseRestRequest, LiAsyncRequestCallback)
call.public java.lang.String getRequestBody()
public void processAsync(LiAsyncRequestCallback liAsyncRequestCallback) throws LiRestResponseException
LiClient.processAsync(LiAsyncRequestCallback)
processAsync
in interface LiClient
liAsyncRequestCallback
- LiAsyncRequestCallback
LiRestResponseException
public void processAsync(LiAsyncRequestCallback liAsyncRequestCallback, java.lang.String imagePath, java.lang.String imageName) throws LiRestResponseException
processAsync
in interface LiClient
liAsyncRequestCallback
- LiAsyncRequestCallback
imagePath
- this is the absolute path of the image.imageName
- this is the name of the image file.LiRestResponseException
public LiClientResponse processSync() throws LiRestResponseException
LiClient.processSync()
processSync
in interface LiClient
LiRestResponseException
public Gson getGson()
LiRestv2Client
LiClient.getGson()
public java.lang.String getType()
public lithium.community.android.sdk.api.LiBaseClient.RequestType getRequestType()
LiClient
getRequestType
in interface LiClient
public LiClient setOrdering(LiQueryOrdering liQueryOrdering)
setOrdering
in interface LiClient
liQueryOrdering
- LiQueryOrdering