-
- All Implemented Interfaces:
-
com.batch.android.post.PostDataProvider
public class JSONPostDataProvider implements PostDataProvider<JSONObject>
A json post data provider
-
-
Constructor Summary
Constructors Constructor Description JSONPostDataProvider()Create a new provider with empty data JSONPostDataProvider(JSONObject data)Create a new provider with given data
-
Method Summary
Modifier and Type Method Description StringgetContentType()Get the content type of the data booleanisEmpty()Checks whether this provider is empty or not. JSONObjectgetRawData()Get modifiable raw data. -
-
Constructor Detail
-
JSONPostDataProvider
JSONPostDataProvider()
Create a new provider with empty data
-
JSONPostDataProvider
JSONPostDataProvider(JSONObject data)
Create a new provider with given data
-
-
Method Detail
-
getContentType
String getContentType()
Get the content type of the data
-
isEmpty
boolean isEmpty()
Checks whether this provider is empty or not.
-
getRawData
JSONObject getRawData()
Get modifiable raw data.The given data should be modifiable.
-
-
-
-