public class NetmeraInbox
extends java.lang.Object
Netmera#fetchInbox(NetmeraInboxFilter, NetmeraInboxFetchCallback)
Modifier and Type | Class and Description |
---|---|
static interface |
NetmeraInbox.NetmeraInboxFetchCallback |
static interface |
NetmeraInbox.NetmeraInboxStatusCallback |
Modifier and Type | Method and Description |
---|---|
int |
countForStatus(int status)
Returns count of objects matching with given status options.
|
void |
fetchNextPage(NetmeraInbox.NetmeraInboxFetchCallback callback)
Fetch the contents of the next page from Netmera servers.
|
boolean |
hasNextPage()
Use this boolean to check if inbox still has next pages to fetch
|
java.util.List<NetmeraPushObject> |
pushObjects()
Accessing the list which contains all objects fetched in an aggregated manner.
|
void |
updateStatus(java.util.List<NetmeraPushObject> pushObjectList,
int inboxStatus,
NetmeraInbox.NetmeraInboxStatusCallback callback)
Update status of given push objects.
|
public void fetchNextPage(NetmeraInbox.NetmeraInboxFetchCallback callback)
pageSize
value of the NetmeraInboxFilter
object. Use this method to fetch the list of push objects belonging to the
next page.
When fetch process is finished, given callback will be called. If error
parameter is null
, it
means that the fetch operation has been succeeded.callback
- A NetmeraInbox.NetmeraInboxFetchCallback
to be triggered after fetch process is completed.public void updateStatus(@NonNull java.util.List<NetmeraPushObject> pushObjectList, int inboxStatus, @NonNull NetmeraInbox.NetmeraInboxStatusCallback callback)
NetmeraInbox.NetmeraInboxStatusCallback
object. A null
error
value means operation
succeeded.
Setting multiple status options to status parameter will result in an immediate error.pushObjectList
- The list of push objects whose status will be updated.inboxStatus
- Status option to be set upon given push objects.callback
- A NetmeraInbox.NetmeraInboxStatusCallback
to be triggered after fetch process is
completed.public java.util.List<NetmeraPushObject> pushObjects()
public int countForStatus(int status)
|
operator.status
- Status types to include while calculating count.public boolean hasNextPage()