Package com.sendly.models
Class ScheduledMessageList
java.lang.Object
com.sendly.models.ScheduledMessageList
- All Implemented Interfaces:
Iterable<ScheduledMessage>
A list of scheduled messages with pagination metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Get all messages in this page.intgetLimit()Get the limit used for this request.intGet the offset used for this request.intgetTotal()Get the total number of scheduled messages.booleanhasMore()Check if there are more messages to fetch.iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ScheduledMessageList
public ScheduledMessageList(com.google.gson.JsonObject json)
-
-
Method Details
-
getData
Get all messages in this page. -
getTotal
public int getTotal()Get the total number of scheduled messages. -
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 messages to fetch. -
iterator
- Specified by:
iteratorin interfaceIterable<ScheduledMessage>
-