Package com.netmera
Class NetmeraInboxCategory
java.lang.Object
com.netmera.NetmeraInboxCategory
This class provides methods to fetch the count of the notifications by business unit and message statuses with
given filter.
Netmera.fetchCategory(NetmeraCategoryFilter, NetmeraInboxCategoryCallback)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionAccessing the list which contains all objects fetched in an aggregated manner.voidFetch the contents of the next page from Netmera servers.booleanUse this boolean to check if inbox still has next pages to fetch
-
Method Details
-
fetchNextPage
Fetch the contents of the next page from Netmera servers. NetmeraInboxCategory object fetches and stores the list of category objects incrementally respecting to thepageSizevalue of theNetmeraCategoryFilterobject. Use this method to fetch the list ofNetmeraCategoryobjects belonging to the next page. When fetch process is finished, given callback will be called. Iferrorparameter isnull, it means that the fetch operation has been succeeded.- Parameters:
callback- ANetmeraInboxCategory.NetmeraInboxCategoryCallbackto be triggered after fetch process is completed.
-
categories
Accessing the list which contains all objects fetched in an aggregated manner. That is, if you have fetched 3 pages and your page size 20, this list will contain all 60 objects, rather than holding the data of only last page.- Returns:
- List of fetched category objects.
-
hasNextPage
public boolean hasNextPage()Use this boolean to check if inbox still has next pages to fetch- Returns:
- True if next page is available, false otherwise.
-