Class BatchList

java.lang.Object
com.sendly.models.BatchList
All Implemented Interfaces:
Iterable<BatchMessageResponse>

public class BatchList extends Object implements Iterable<BatchMessageResponse>
A list of message batches with pagination metadata.
  • Constructor Details

    • BatchList

      public BatchList(com.google.gson.JsonObject json)
  • Method Details

    • getData

      public List<BatchMessageResponse> getData()
      Get all batches in this page.
    • getTotal

      public int getTotal()
      Get the total number of batches.
    • getLimit

      public int getLimit()
      Get the limit used for this request.
    • getOffset

      public int getOffset()
      Get the offset used for this request.
    • hasMore

      public boolean hasMore()
      Check if there are more batches to fetch.
    • iterator

      public Iterator<BatchMessageResponse> iterator()
      Specified by:
      iterator in interface Iterable<BatchMessageResponse>