Package com.netmera

Class NetmeraInboxCategory

java.lang.Object
com.netmera.NetmeraInboxCategory

public class NetmeraInboxCategory extends Object
This class provides methods to fetch the count of the notifications by business unit and message statuses with given filter.Netmera.fetchCategory(NetmeraCategoryFilter, NetmeraInboxCategoryCallback)
  • Method Details

    • 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 the pageSize value of the NetmeraCategoryFilter object. Use this method to fetch the list of NetmeraCategory 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.

      Parameters:
      callback - A NetmeraInboxCategory.NetmeraInboxCategoryCallback to be triggered after fetch process is completed.
    • categories

      public 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.