Package com.batch.android.post
Class InboxSyncPostDataProvider
- java.lang.Object
-
- com.batch.android.post.InboxSyncPostDataProvider
-
- All Implemented Interfaces:
PostDataProvider<JSONObject>
public class InboxSyncPostDataProvider extends java.lang.Object implements PostDataProvider<JSONObject>
-
-
Constructor Summary
Constructors Constructor Description InboxSyncPostDataProvider(java.util.Collection<InboxCandidateNotificationInternal> candidates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Get the content type of the databyte[]getData()Get the dataJSONObjectgetRawData()Get modifiable raw data.
The given data should be modifiable.booleanisEmpty()
-
-
-
Constructor Detail
-
InboxSyncPostDataProvider
public InboxSyncPostDataProvider(java.util.Collection<InboxCandidateNotificationInternal> candidates)
-
-
Method Detail
-
getRawData
public JSONObject getRawData()
Description copied from interface:PostDataProviderGet modifiable raw data.
The given data should be modifiable.- Specified by:
getRawDatain interfacePostDataProvider<JSONObject>- Returns:
-
getData
public byte[] getData()
Description copied from interface:PostDataProviderGet the data- Specified by:
getDatain interfacePostDataProvider<JSONObject>- Returns:
-
isEmpty
public boolean isEmpty()
-
getContentType
public java.lang.String getContentType()
Description copied from interface:PostDataProviderGet the content type of the data- Specified by:
getContentTypein interfacePostDataProvider<JSONObject>- Returns:
-
-