true when next can return more messages.
true when previous can return more messages.
Fetches the next batch of newer messages. Within the batch, messages are sorted oldest-first or newest-first according to GetMessagesOptions.order.
If hasNext is false (code ASE-0003)
Fetches the next batch of older messages. Within the batch, messages are sorted oldest-first or newest-first according to GetMessagesOptions.order.
If hasPrevious is false (code ASE-0003)
Iterator for the message history of an interaction.
The first call to previous or next - returns the most recent batch of messages and seeds the iterator from there. From that starting point, previous pages backward into older history and next fetches any newer messages that have since arrived.
Concurrent calls to next / previous are serialized - they never run in parallel.
Example