public class NexmoEventsPage
extends <any>
NexmoEvent
, created by the response from NexmoConversation.getEvents(Integer, NexmoPageOrder, String, NexmoRequestListener)
.
Load events page:
conversation.getEvents(100, NexmoPageOrder.NexmoMPageOrderAsc, null, new NexmoRequestListener() { @Override public void onSuccess(@Nullable NexmoEventsPage eventsPage) { eventsPage.getNext(new NexmoRequestListener () { @Override public void onError(@NonNull NexmoApiError nexmoApiError) { Log.d("getEvents", "Error: Unable to load conversation events " + apiError.getMessage()); } @Override public void onSuccess(@Nullable NexmoEventsPage nexmoEventsPage) { Log.d("getEvents", "Events loaded " + nexmoEventsPage.getPageResponse().getData()); } }); } @Override public void onError(@NonNull NexmoApiError apiError) { } });
Constructor and Description |
---|
NexmoEventsPage(<any> pageResponse,
NexmoConversation conversation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
void |
getNext(NexmoRequestListener<NexmoEventsPage> listener)
Gets the next page.
|
void |
getPrev(NexmoRequestListener<NexmoEventsPage> listener)
Gets the prev page.
|
int |
hashCode() |
public NexmoEventsPage(<any> pageResponse, NexmoConversation conversation)
public void getNext(NexmoRequestListener<NexmoEventsPage> listener)
listener
- The request completion listener.public void getPrev(NexmoRequestListener<NexmoEventsPage> listener)
listener
- The request completion listener.public boolean equals(java.lang.Object o)
public int hashCode()