Class EmailList

java.lang.Object
africa.sendbyte.emails.EmailList

public final class EmailList extends Object
A single page of results from Emails.list().

For cursor pagination, take the id of the last item in getData() and pass it as after on the next call while isHasMore() is true.

  • Constructor Details

    • EmailList

      public EmailList()
  • Method Details

    • getData

      public List<Email> getData()
      The emails on this page, newest-first.
    • setData

      public void setData(List<Email> data)
    • isHasMore

      public boolean isHasMore()
      true if more emails exist older than the last item on this page.
    • setHasMore

      public void setHasMore(boolean hasMore)