Package com.netmera
Class NetmeraInboxCategory
- java.lang.Object
-
- com.netmera.NetmeraInboxCategory
-
public class NetmeraInboxCategory extends java.lang.ObjectThis 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 Classes Modifier and Type Class Description static interfaceNetmeraInboxCategory.NetmeraInboxCategoryCallback
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NetmeraCategory>categories()Accessing the list which contains all objects fetched in an aggregated manner.voidfetchNextPage(NetmeraInboxCategory.NetmeraInboxCategoryCallback callback)Fetch the contents of the next page from Netmera servers.booleanhasNextPage()Use this boolean to check if inbox still has next pages to fetch
-
-
-
Method Detail
-
fetchNextPage
public void fetchNextPage(NetmeraInboxCategory.NetmeraInboxCategoryCallback callback)
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
public java.util.List<NetmeraCategory> 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.
-
-